#include<iostream>
using namespace std;
int main( ) {
while ( true ) {
int consumo;
cout << "Digite 1 -> até 100kw" << endl;
cout << "Digite 2 -> de 101kw até 200kw" << endl;
cout << "Digite 3 -> maior que 200kw" << endl;
cin >> consumo;
switch ( consumo) {
case 1 :
cout << "Parabéns, você é econômico." << endl;
break ;
case 2 :
cout << "Cuidado, você está gastando muito." << endl;
break ;
case 3 :
cout << "Que isso vei?" << endl;
break ;
}
if ( consumo > 0 && consumo < 4 ) break ;
}
}
//https://pt.stackoverflow.com/q/322634/101
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIHdoaWxlICh0cnVlKSB7CiAgICAgICAgaW50IGNvbnN1bW87CiAgICAgICAgY291dCA8PCAiRGlnaXRlIDEgLT4gYXTDqSAxMDBrdyIgPDwgZW5kbDsKICAgICAgICBjb3V0IDw8ICJEaWdpdGUgMiAtPiBkZSAxMDFrdyBhdMOpIDIwMGt3IiA8PCBlbmRsOwogICAgICAgIGNvdXQgPDwgIkRpZ2l0ZSAzIC0+IG1haW9yIHF1ZSAyMDBrdyIgPDwgZW5kbDsKICAgICAgICBjaW4gPj4gY29uc3VtbzsKICAgICAgICBzd2l0Y2ggKGNvbnN1bW8pIHsKICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgIGNvdXQgPDwgIlBhcmFiw6lucywgdm9jw6ogw6kgZWNvbsO0bWljby4iIDw8IGVuZGw7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIGNhc2UgMjoKICAgICAgICAgICAgY291dCA8PCAiQ3VpZGFkbywgdm9jw6ogZXN0w6EgZ2FzdGFuZG8gbXVpdG8uIiA8PCBlbmRsOwogICAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIDM6CiAgICAgICAgICAgIGNvdXQgPDwgIlF1ZSBpc3NvIHZlaT8iIDw8IGVuZGw7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBpZiAoY29uc3VtbyA+IDAgJiYgY29uc3VtbyA8IDQpIGJyZWFrOwogICAgfQp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zMjI2MzQvMTAx