Skip to content

Instantly share code, notes, and snippets.

@alonzoibarra97
Created February 16, 2016 10:50
Show Gist options
  • Save alonzoibarra97/f19ca2056dddb3a6a397 to your computer and use it in GitHub Desktop.
Save alonzoibarra97/f19ca2056dddb3a6a397 to your computer and use it in GitHub Desktop.
Temperature.cpp
#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