Fahrenheit to Celsius C Program
Write a C Program to convert Temperature from Fahrenheit to Celsius.
#include <stdio.h>
#include <conio.h>
void main()
{
float cel, fan;
printf("Enter temperature in Fahrenheit : \n");
scanf("%f",&fan);
cel = (fan - 32) * 5/9;
printf("\nCelsius = %f",cel);
}
The output of Fahrenheit to Celsius c program :
Enter temperature in Fahrenheit :
50
Celsius = 10