Skip to content

Instantly share code, notes, and snippets.

@batmantec
Created January 21, 2016 19:48
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 batmantec/cc9f88642765a0aec001 to your computer and use it in GitHub Desktop.
Save batmantec/cc9f88642765a0aec001 to your computer and use it in GitHub Desktop.
#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