13. C Program to convert Fahrenheit Into Celsius.
How does this program work?
- In this programme you will learn how to easily convert Temperature of city in fahrenheit into celsius.
- input of user is stored in variables and then by using the formula below we can easily convert fahrenheit into celsius.
- This programme perform mathematical calculation and display the result using C language.
Here is the code
#include <stdio.h>
int main(void)
{
int f;
float a,g;
printf("Enter Temperature in fahrenheit\n");
scanf("%d",&f);
a=f-32;
g=(5*a)/9;
printf( "Temperature in degree celsius =%f ",g);
}