Celsius to Fahrenheit
Convert a temperature from degrees Celsius to degrees Fahrenheit with the formula fahrenheit = celsius × 9 / 5 + 32.
Input
One line with the temperature celsius, a decimal number with at most one digit after the point.
Output
The temperature in Fahrenheit. Any number within 0.000001 of the exact answer is accepted, so 98.6, 98.60 and 98.60000000000001 are all right for 37.
Constraints
- -273.1 ≤
celsius≤ 1000
The input is read for you. The starter code puts it in variables; write your code under Your code here and print the answer. Changed the code already? Reset () brings the starter back.
Example 1
Input
100
Output
212
Why:
Water boils at 100 °C, which is 212 °F.
Example 2
Input
36.6
Output
97.88
Why:
36.6 × 9 / 5 + 32 = 97.88.
Hints
Was this a good challenge?
- Solved by
- 0
- Submissions
- 0
- Accepted
- –