Skip to content

Instantly share code, notes, and snippets.

@jesuscmadrigal
Created September 1, 2017 17:12
Show Gist options
  • Save jesuscmadrigal/ba73e75e82fd76ce745eb7cb71efd869 to your computer and use it in GitHub Desktop.
Save jesuscmadrigal/ba73e75e82fd76ce745eb7cb71efd869 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{ int Celsius,Fahrenheit;
cout << "Enter Fahrenheit temperature: ";
cin >> Fahrenheit;
Celsius = (Fahrenheit-32)*5/9;
cout << "Celsius = " << Celsius << endl;
if (Celsius >= 100)
{ cout << "With this temperature water boils." << endl;}
else
{ cout << "With this temperature water does not boils. " << endl;}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment