Weather Report (Functions)

Write tofahrenheit(c) returning c 9 / 5 + 32. Read an integer Celsius value and print Fahrenheit with one decimal place.

Input: One integer.

Output: e.g. 98.6.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Do the math with decimals.

More Functions practice