Write a program which accepts temperature in Farenheit and print it in centigrade.

0
13

Source Code:

#include<iostream>
using namespace std;

int main()
{
	float F,C;
	cout<< "\nEnter temperature in Farenheit : \n";
	cin>>F;
	C=5*(F-32)/9;
	cout<<"Temperature in celcius is : "<<C;
	return 0;
}

Output:

Enter temperature in Farenheit : 99.6
Temperature in celcius is : 37.5556

LEAVE A REPLY

Please enter your comment!
Please enter your name here