write a program to input the temperature in Fahrenheit and convert it to celcius (c=5/9*(f-32)
Answers
Answered by
1
Answer:
t o convert temperature in degrees Fahrenheit to Celsius, we use the following formula:
The following is a C program to convert temperature in Fahrenheit to Celsius:
#include<stdio.h> // include stdio.h
int main()
{
float fah, cel;
printf("Enter a temp in fah: ");
scanf("%f", &fah);
cel = (5.0/9) * (fah - 32);
printf ("%.2f°F is same as %.2f°C", fah, cel);
return 0;
}
Similar questions