I just made a code that converts the temperature from Fahrenheit to Celsius! I’m really glad that I could finally do it completely by myself! I did not even search for it at the internet, I just used the codes I did before as a reference. I just had one error but I could fix it easily.
Here’s my code:
#include <iostream>
using namespace std;
int C,F;
int main()
{
cout<<“What is the temperature in Farenheit?”;
cin>>F;
C=5*(F-32)/9;
cout<<“The temperature in Celsius is:”<< C <<endl;
if (C>=100)
cout<<“Water will boil at this temperature”;
else
cout<<“Water will not boil at this temperature”<<endl;
}
Temperature by Mferflores is licensed under a Creative Commons Attribution 4.0 International License.