← Back to User Input
Question 162
Celsius To Fahrenheit
Celsius To Fahrenheit
Read a temperature in Celsius as a decimal number, convert it to Fahrenheit (multiply by 9, divide by 5, add 32) and print both values with one decimal each in the form <celsius> C is <fahrenheit> F, using :0.1f. Input: one line, a number, no prompt.
Expected Output:
25.0 C is 77.0 F= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.