2 of 5
Exercise #2beginner

Temperature Converter (Celsius to Fahrenheit)

Given a temperature in Celsius stored in the variable celsius, calculate the temperature in Fahrenheit and store it in fahrenheit. The formula is: F = (C * 9/5) + 32. Print the rounded integer value of fahrenheit.

Instructions

  • Calculate `fahrenheit` using the conversion formula.
  • Print `int(fahrenheit)`.
Progressive Hints (1 / 2)

Multiply `celsius` by `9 / 5`, then add `32`.

solution.py
Loading Monaco Editor...

Press Ctrl+Enter or click "Run Code" to execute your solution in the browser.