Skip to content
C

Temperature Converter

Easypython

Convert a Celsius temperature into both Fahrenheit and Kelvin using the standard conversion formulas.

What the problem means: you're given one temperature in Celsius and need to compute the same temperature in two other common scales.

Formulas: F = C * 9/5 + 32 and K = C + 273.15.

Approach: read the Celsius value as a float, compute F and K with the formulas above, then print all three values formatted to the decimal places shown in the example.

Input: One line: a temperature in Celsius (may include a decimal point, may be negative).

Output: One line: <C>°C = <F>°F = <K>K, with Celsius and Fahrenheit shown to 1 decimal place and Kelvin to 2.

Input (stdin)

Output

Run your code to see output here...