Course · Section 10: A Closer Look at Functions · Lecture 34: Functions
Implement two functions that the test driver will call together: - `cToF(c)` converts Celsius to Fahrenheit. - `fToC(f)` converts Fahrenheit to Celsius. Formulas: F = C * 9/5 + 32 and C = (F - 32) * 5/9.
+ 1 hidden test run on Submit.
Both conversion functions are exercised together by the driver. This mirrors interview problems where one task involves several cooperating functions.
Run your code to see results.