CJCoding With Joseph
15free / daySign inCreate account

Temperature Both Ways

The Fahrenheit value is already computed from the declared Celsius reading. Print two lines of output: the Celsius value shown with one decimal using :0.1f, a space and the letter C; then the Fahrenheit value shown the same way followed by a space and the letter F. Input: none; the values are fixed in the code.

Expected Output:

21.5 C
70.7 F

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Printing
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.