Write a C Program to convert temperature from Fahrenheit to degree centigrade. c=(f-32)*5/9

#include<stdio.h>
main()
{
     float f,c;
     printf("\nEnter Fahrenheit value=");
     scanf("%f",&f);
     c=(f-32)*5/9;
     printf("\n%.2f f= %.2f c",f,c);
}

No comments:

Post a Comment