Created
February 16, 2016 10:50
-
-
Save alonzoibarra97/f19ca2056dddb3a6a397 to your computer and use it in GitHub Desktop.
Temperature.cpp
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() | |
{ | |
double farenheit, celcius; | |
cout << "Give the temperature in farenheits\n"; | |
cin >> farenheit; | |
celcius=((5*(farenheit-32))/9); | |
cout << "The temperature in celcius degrees is " << celcius<< endl; | |
if(celcius>=100) | |
cout << "Water boils at this temperature"; | |
else | |
cout << "Water does not boil at this temperature"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment