Created
January 21, 2016 19:48
-
-
Save batmantec/cc9f88642765a0aec001 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 datain, dataout; | |
cout << "Enter the temperature in Fahrenheit: "; | |
cin >> datain; | |
cout << "The temperature of "<< datain; | |
dataout= 5*(datain-32)/9; | |
cout << " and the temperature in Celsius is "<< dataout <<endl; | |
if (dataout>=100) | |
cout << "Water does boil at this temperature."<<endl; | |
else | |
cout << "Water does not boil at this temperature."<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment