Why does every Java course has to include exercises with material unknown to the student? First modulo, now loops. If this continues I'm gonna set up a blog with solutions to those particular tasks.