Skip to content

Instantly share code, notes, and snippets.

@Adals20
Created January 23, 2017 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adals20/ab1e67c22fe202633b99fdbf1b3e176b to your computer and use it in GitHub Desktop.
Save Adals20/ab1e67c22fe202633b99fdbf1b3e176b to your computer and use it in GitHub Desktop.
#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