Practice ยท 1 of 4
Temperature pair
CHALLENGE
Difficulty: beginner+25 XP
Implement static double CtoF(double c) (multiply by 9/5, add 32) and static double FtoC(double f) (subtract 32, multiply by 5/9). Watch the parentheses โ the subtraction must happen before the scaling in one direction and after it in the other.
Press Submit to check your solution.
Back to lesson: Practice: Method workshop