#include<stdio.h> #include<conio.h> void main() { float celsius,fahrenheit; clrscr(); printf("\n Enter the Temparature in Celsius : "); scanf("%f",&celsius); fahrenheit = (1.8 * celsius) + 32; printf("\n Temperature in Fahrenheit : %f ",fahrenheit); getch(); }
OUTPUT:
Enter the Temparature in Celsius : 31 Temperature in Fahrenheit : 87.800003