C program to convert temperature from fahrenheit to celsius. In this program we will take Temperature from user in Fahrenheit as an input and convert it into Celsius
In the following program we convert temperature from fahrenheit to celsius. In the following program we will take input temprature in fahrenheit and store it in fah variable and then put the formul to convert it into Celsius.
#include<stdio.h>
void main()
{
float fah,result;
printf("Enter Temperature in Fahrenheit\n ");
scanf("%f",&fah);
result=(((fah-32)*5)/9);
printf("\nTemperature in Celsius %f",result);
}
Figure 1
Figure 2