#14Easy
Fahrenheit to Celsius
Time: 1 s · Memory: 256 MB
- Variables and types
Statement
A temperature is given on the Fahrenheit scale: . Convert it to the Celsius scale:
Input format
A single integer ().
Output format
A single number — with exactly 2 digits after the decimal point.
Examples
Input
212
Output
100.00
Input
100
Output
37.78
Note
Careful: in C++ and Go 5 / 9 is a division of two integers, which is 0, so the answer would always be . Start the computation with a floating-point number: (F - 32) * 5.0 / 9 or (F - 32) / 1.8.
