Friday, October 1, 2010

C program to convert Fahrenheit to Centigrade temperature scale. (F=(C*9/5)+32)

int main()
{
float f,c;
printf("Enter Fahrenheit");
scanf("%f",&f);
c=((f-32.0)*5.0)/9.0;
printf("%f Fahrenheit=%f Centigrade",f,c);
getch();
return 0;
}

No comments:

Post a Comment

Google+ Followers