// Good, but if you use mean in a whie loop instead of the for loop, there is no need for break.

Nice job with the loop to force the right entry.