C Program to Convert Temperature from Degree Fahrenheit to Celsius

 

C Program to Convert Temperature from Degree   Fahrenheit to Celsius


/**************************************

 *C Program to convert Temperature from Degree   Fahrenheit to Celsius

 *c=((fahrenheit-32)*5)/9

 ************************************************/

 #include<stdio.h>

 #include<conio.h>

 void main()

 {

     float fahrenheit,c;

     clrscr();

    printf("\t\t***Output***\n);

     printf("Enter temperature in degree Fahrenheit:\n");

     scanf("%f",&fahrenheit);

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

     printf("The temperature conversion from degree Fahrenheit  to degree Celsius is:\t%f\n",c);

     printf("End of Program");

 }

 

            ***Output***

Enter temperature in degree Fahrenheit:

99

The temperature conversion from degree Fahrenheit to degree Celsius is: 37.222221

End of Program

टिप्पणी पोस्ट करा

0 टिप्पण्या