Fahrenheit to Celsius

Different countries prefer different temperature measurements. Two of the most popular two measures are Celsius and Fahrenheit. To convert Fahrenheit to Celsius one can use the following formula:
You are asked to write a program to automate the process of converting from Fahrenheit to Celsius.
The program should receive a single input - Fahrenheit (a floating-point number). And should print the resulting Celsius in the output.
Input
Output
32
0
100
37.7778
 
To check your solution you need to sign in
Sign in to continue