C Program to Convert Fahrenheit to Celsius
#include<stdio.h>
int main()
{
float cel, fah;
printf("Enter temperature in Fahrenheit: ");
scanf("%f",&fah);
cel = (fah -32)*5/9;
printf("%.2f Fahrenheit = %.2f Celsius", fah, cel);
return 0;
}
Output
Enter temperature in Fahrenheit: 212
212.00 Fahrenheit = 100.00 Celsius