Write a program that converts the temperature from Fahrenheit to Celsius.
\[C=\frac{5}{9}(F-32)\]
Difficulty level

Video recording
This exercise is mostly suitable for students
#include <stdio.h>
int main()
{
int F;
double C;
printf("Enter the degree in Fahrenheit: ");
scanf("%d", &F);
C= 5.0 / 9 * ( F - 32 );
printf("%d F = %f C\n", F, C);
return 0;
}
Back to the list of exercises
Looking for a more challenging exercise, try this one !!
