Thursday, 8 January 2015

C Program To Convert Temperature From Celsius To Fahrenheit

/* c program to convert temperature from celsius to fahrenheit  */

For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.

 #include<stdio.h>  
 #include<conio.h>  
 void main()  
 {  
   float temp_in_cel,temp_in_fr=0.0;  
   clrscr();  
   printf("Enter temperature in Celsius: ");  
   scanf("%f",&temp_in_cel);  
   temp_in_fr=(temp_in_cel*1.8)+32;  
   printf("Temperature in Fahrenheit is: %f",temp_in_fr);  
   getch();  
 }  

No comments:

Post a Comment