โ Back to Methods
Question 361
To Celsius Method
To Celsius Method
Complete the static methodToCelsiusso it converts a Fahrenheit temperature to Celsius using the formula(f - 32) * 5 / 9and returns it as adouble. The tester calls it and prints the result. Do NOT write aMainmethod. ForToCelsius(212)the program prints exactly: 100
Expected Output:
100
Topics:
Methods
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.