Covert Faharenhiet to celsius:
Formula:
C= (F-32)*5/9
where C is temperature in celsius
and F is temperature in faharenhiet
Let's understand with an example: Convert 98.6 (normal human body temperature) to celsius:
C= (F-32)*5/9
C= (98.6-32)*5/9
C= 66.6*5/9
C= 333/9
C= 37 degree celsius
Program to convert Faaharenhiet to celsius:
#include <stdio.h>
int main()
{
float celsius, fahrenheit;
/* Input temperature in fahrenheit */
printf("Enter temperature in Fahrenheit: ");
scanf("%f", &fahrenheit);
/* Fahrenheit to celsius conversion formula */
celsius = (fahrenheit - 32) * 5 / 9;
/* Print the value of celsius */
printf("%.2f Fahrenheit = %.2f Celsius", fahrenheit, celsius);
return 0;
}
Output:
Get Answers For Free
Most questions answered within 1 hours.