Given a Fahrenheit F., This problem requires programming, calculates the corresponding Celsius C. Calculated: C = 5 × (F-32) / 9. Title ensure that the input and the output are within the range of integers.
Input format:
Enter a given row in Fahrenheit.
Output formats:
in the format line "Celsius = C" corresponding to the integer value of the output C of the temperature in degrees Celsius.
Input Sample:
150
Output Sample:
the Celsius = 65
#include<stdio.h>
int main(void)
{
int Celsius, fahr;
scanf("%d", &fahr);
Celsius=5*(fahr-32)/9;
printf("Celsius = %d\n", Celsius);
return 0;
}