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

 // program for calculate to convert the temprature.

# include<stdio.h>

int main(){
    float fahrenheit,celsius;
    printf("Enter the value of fahrenheit :\n");
    scanf("%f",&fahrenheit);
    celsius = (fahrenheit - 32) * 5/9;
    printf("The value of %f degree F is %f  degree C ",fahrenheit,celsius);
    return 0;
}
/*OUTPUT*/
Enter the value of fahrenheit : 65 The value of 65.000000 degree F is 18.333334 degree C

Comments

Popular posts from this blog

5 d.) program to print this :