Program to convert temperature from degree centigrade to Fahrenheit
#include<stdio.h> #include<conio.h> void main() { float celsius,fahrenheit; clrscr(); printf("nEnter temp in Celsius : "); scanf("%f",&celsius); fahrenheit = (1.8 * celsius) + 32; printf("nTemperature in Fahrenheit : %f ",fahrenheit); getch(); }
Output :
Enter temp in Celsius : 32 Temperature in Fahrenheit : 89.59998
No comments:
Post a Comment