In this chapter, you will complete the topic of simple loops. That’s simple in a sense of “not nested,” not in a sense of “trivial.” No loops are trivial, especially the loops in this chapter.
The chapter and the whole book will close with a bonus: a moon landing simulation game. If you find the exercises in this chapter too difficult, play the game only.
Thank God It’s Friday (TGIF)
It is time to get acquainted with the while loop, which is a cousin of the do-while loop you are already familiar with.
Task
You will prepare a program that displays the date of the nearest ...