CJCoding With Joseph

Celsius to Fahrenheit

Write a function int toFahrenheit(int celsius) that converts a Celsius temperature to Fahrenheit using F = C * 9 / 5 + 32.

For toFahrenheit(100) the program prints 212.

Expected Output:

212
Topics:
Functions
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.