C Program for Temperature from Degree Celsius to Fahrenheit

 

C Program to convert Temperature from Degree Celsius to Fahrenheit


 

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

 *C Program to convert Temperature from Degree Celsius to Fahrenheit

 *F=(c*9/5)+32

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

 #include<stdio.h>

 #include<conio.h>

 void main()

 {

     float fahrenheit,c;

     //clrscr();

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

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

     scanf("%f",&c);

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

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

     printf("End of Program");

 }

            ***Output***

Enter temperature in degree celsius:

37

The temperature conversion from degree Celsius to Fahrenheit is:   98.599998

End of Program

 

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

0 टिप्पण्या