ProAnswers.org

Write a C program to convert Fahrenheit to Celsius ?

#include

#include



void main()



{



float f,c;



clrscr();



printf(“enter the fahrenheit value

”);

scanf(“%f”,&f);



c=((f-32)*5)/9;



printf(“celsius value=%f”,f);



getch();



}



[b]Output: [/b]



enter the fahrenheit value:



98.6



celsius value=37