Practice · 2 of 4
Middle value
CHALLENGE
Difficulty: beginner+25 XP
Implement midValue(int a, int b, int c): return the middle of the three (not the min, not the max). Ties are fine — any middle-order value works.
Press Submit to check your solution.
Back to lesson: Practice: Testing and debugging reps