© Radek Vystavěl 2017

Radek Vystavěl, C# Programming for Absolute Beginners, https://doi.org/10.1007/978-1-4842-3318-4_25

25. Advanced Loops

Radek Vystavěl

(1)Ondřjov, Czech Republic

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 ...

Get C# Programming for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.