CJCoding With Joseph
15free / daySign inCreate account

Celsius to Fahrenheit

Read a temperature in degrees Celsius (a decimal number) from standard input and convert it to Fahrenheit using the formula F = C * 9 / 5 + 32. Print the result rounded to exactly one decimal place. For example, 100 degrees Celsius becomes 212.0. Be careful to use floating-point arithmetic so the * 9 / 5 part is not rounded down.

Expected Output:

212.0

= newline. No newline after the last line.

Hints3 available
Topics:
User Input
📥 Auto-Input:
100\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.