Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- float consumoGeneral = 0;
- float consumo = 0;
- cout << "ttEficiencia Energetica" << endl;
- cout << endl << endl;
- cout << "Para determinar la eficiencia energetica ningrese el Consumo "
- "General (en kW): ";
- cin >> consumoGeneral;
- cout << endl;
- cout << "Ahora ingrese el consumo a comparar: ";
- cin >> consumo;
- cout << endl;
- if ((consumo >= 0.8 * consumoGeneral) && (consumo <= consumoGeneral)) {
- cout << "CONSUMO MEDIO";
- } else if (consumo < 0.8 * consumoGeneral) {
- cout << "CONSUMO BAJO" << endl;
- } else {
- cout << "ALTO CONSUMO DE ENERGIA";
- }
- cin.get();
- return 0;
- }
Add Comment
Please, Sign In to add comment