C Program To Convert Temperature In Fahrenheit To Celsius

 

C Program To Convert Temperature In Fahrenheit To Celsius

/* Author --> HARSH PATEL */
#include<stdio.h>
void main()
{
    float cl,fh=20;
    cl=(fh-32) / 1.8;
    printf("Temperature in Celsius is %f and Fahrenhit is %f",cl,fh);
}



output

Temperature in Celsius is -6.666667 and Fahrenhit is 20.000000

 
•now the program ends without any error.


Popular posts from this blog

C Program To Print Hello World

Declare And Initialize Two Character Constants And Output It To User

C Program To Calculate Profit Or Loss