// Good, but if you use mean in a whie loop instead of the for loop, the...

...re is no need for break.

Nice job with the loop to force the right entry.