Learn Create Your Own Split Screen

Next Page

A do-while loop, on the other hand, guarantees you'll execute the loop at least once.
do { update_the_canvas(); show_score(); } while (alien_count > 0); display_game_over();
There are times using a do-while-loop instead of a normal while-loop can save you a bunch of otherwise convoluted logic, simply by guaranteeing everything in the loop happens at least once.