Temperature Coversion

C program to convert temperature in degree Celsius to degree Fahrenheit and vice-versa.


#include<stdio.h>
#include<conio.h>
main()
{
float c,f;
printf("Enter temperature in Celsius: ");
scanf("%f",&c);
f=((9*c)/5)+32;
printf("\nCorresponding temperature in Fahrenheit: %f",f);
printf("\nEnter temperature in Fahrenheit: ");
scanf("%f",&f);
c=((f-32)*5)/9;
printf("\nCorresponding temperature in Celsius: %f",c);
return 0;
}