Fahrenheit to celsius or celsius to Fahrenheit Temperature | C-Program
Temperature:
Formula:
F= Fahrenheit, C=Celsius.
Code:
#include<stdio.h>
void main()
{
float f,c;
printf("Enter the temperature in celcius: ");
scanf("%f",&c);
f=(9*c)/5+32;
printf("The temperature in faranhite: %f\n",f);
printf("Enter the temperature in farnhite: ");
scanf("%f",&f);
c=(f*5-160)/9;
printf("The temperature in celcius: %f",c);
getch();
}
