Created
January 23, 2017 15:33
-
-
Save Adals20/ab1e67c22fe202633b99fdbf1b3e176b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(){ | |
int f1, c1; | |
cout << "---Conversor de Grados Celcuis a Fahrenheit---" << endl; | |
cout << "" << endl; | |
cout << "Cual es la temperatura en Fahrenheit: "; | |
cin >> f1; | |
c1 = (5*(f1-32)/9); | |
cout << "La temperatura de " << f1 << " Grados Fahrenheit son: "<< c1 << " en Grados Centigrados" <<endl; | |
if (c1>=100) | |
{ | |
cout << "A esa temperatura el agua hervira (en condiciones normales)" << endl; | |
} | |
else | |
{ | |
cout << "A esa temperatura el agua NO hervira (en condiciones normales)" << endl; | |
} | |
if (c1<0) | |
{ | |
cout << "El Agua se encuntra en estado Solido" << endl; | |
} | |
else | |
{ | |
if (c1>=0 && c1<100) | |
cout << "El Agua se encuntra en estado Liquido" << endl; | |
else | |
cout << "El Agua se encuntra en estado Gaseoso" << endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment