Thursday 8 May 2014

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

1 comment

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

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
    float Centigrade,f;
    cout<<"Enter temperature in Farenheit ";
    cin>>f;
    Centigrade=5*(f-32)/9;
    cout<<"Centigrade is = "<<Centigrade;
    getch();
}
If You Enjoyed This, Take 5 Seconds To Share It

1 Questions:

Unknown said...

You didn't include return 0 but the program was in integer data type please rectify