← all problems

printTemperatureReport 🌶️

Write a void method named printTemperatureReport that takes one int parameter, celsius. Using the formula fahrenheit = celsius * 9 / 5 + 32, it should print exactly two lines: "Celsius: <celsius>" then "Fahrenheit: <fahrenheit>". For example, printTemperatureReport(100) should print:

Celsius: 100
Fahrenheit: 212