Every time I look at it I wish you could have used at least a while loop but then I realize he probably doesn't know how to use those :<
Printable View
You use while and do...while for conditional looping (you don't know how many times you have to loop). You use switch when you wanna compare 1 variable to a bunch of values (could also be done with a bunch of if...else if). You use break if you want to exit a loop early (I usually put those with a condition). You use return; when you want to exit a function early. I could give you java syntax, but you probably don't want that.