In this tutorial learn how you can convert temperature given in Fahrenheit to Centigrade. Here are the conversion formulas of Fahrenheit to Centigrade.
Fahrenheit = Centigrade*1.8 + 32
C programming is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, etc.
Here is the code to convert the temperature given in Fahrenheit to Centigrade in C programming.
#include <stdio.h> //WAP to convert temperature given in Fahrenheit to Centigrade. [Hint: C*1.8 +32=F]
int main(){
float f,c;
printf("Enter temperature in Fahrenheit:");
scanf("%f",&f);
c=(f-32)/1.8;
printf("%f Fahrenheit equals to is:%f Centigrade.",f,c);
return 0;
}
This is how you can convert temperature given in Fahrenheit to Centigrade. Comment below if you like our tutorial.