Skip to main content

Practice ยท 3 of 3

Average Without the Trap

CHALLENGE
Difficulty: beginner+25 XP

Implement double average(int total, int count) returning the true mathematical average. The starter's signature is already double โ€” the fix is in the division, not the type.

Back to lesson: Practice: Arithmetic Clinic