Pages
Home
C.S. Blog
About Amit Ranjan
Contact Amit Ranjan
A Boy From Sitamarhi
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment