Thursday 30 August 2012

Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees.


main()
{
 float f,c;
 printf("Enter temperature in fahrenheit\n");
 scanf("%f",&f);
 c=(float)5/9*(f-32);
 printf("After conversion, temperetaure is %f  %cC",c,167);
}

output:-

No comments:

Post a Comment