#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;
goto fim;
case 2 :
cout << "Cuidado, você está gastando muito." << endl;
goto fim;
case 3 :
cout << "Que isso vei?" << endl;
goto fim;
}
}
fim:
return 0 ;
}
//https://pt.stackoverflow.com/q/322634/101
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICB3aGlsZSAodHJ1ZSkgewogICAgICAgIGludCBjb25zdW1vOwogICAgICAgIGNvdXQgPDwgIkRpZ2l0ZSAxIC0+IGF0w6kgMTAwa3ciIDw8IGVuZGw7CiAgICAgICAgY291dCA8PCAiRGlnaXRlIDIgLT4gZGUgMTAxa3cgYXTDqSAyMDBrdyIgPDwgZW5kbDsKICAgICAgICBjb3V0IDw8ICJEaWdpdGUgMyAtPiBtYWlvciBxdWUgMjAwa3ciIDw8IGVuZGw7CiAgICAgICAgY2luID4+IGNvbnN1bW87CiAgICAgICAgc3dpdGNoIChjb25zdW1vKSB7CiAgICAgICAgY2FzZSAxOgogICAgICAgICAgICBjb3V0IDw8ICJQYXJhYsOpbnMsIHZvY8OqIMOpIGVjb27DtG1pY28uIiA8PCBlbmRsOwogICAgICAgICAgICBnb3RvIGZpbTsKICAgICAgICBjYXNlIDI6CiAgICAgICAgICAgIGNvdXQgPDwgIkN1aWRhZG8sIHZvY8OqIGVzdMOhIGdhc3RhbmRvIG11aXRvLiIgPDwgZW5kbDsKICAgICAgICAgICAgZ290byBmaW07CiAgICAgICAgY2FzZSAzOgogICAgICAgICAgICBjb3V0IDw8ICJRdWUgaXNzbyB2ZWk/IiA8PCBlbmRsOwogICAgICAgICAgICBnb3RvIGZpbTsKICAgICAgICB9CiAgICB9CmZpbToKICAgIHJldHVybiAwOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zMjI2MzQvMTAx