© Radek Vystavěl 2017

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

15. Getting Started with Conditions

Radek Vystavěl

(1)Ondřjov, Czech Republic

Up to now, a program’s statements have always been executed from the beginning to the end regardless of anything else, simply when their turn came. In this chapter, the whole new world will start to unveil itself because you will learn about the conditional execution of program statements. This means you will work with statements that may or may not execute depending on whether some condition is fulfilled.

Password Input

Your first program with conditions will evaluate a password. The user may or may not be allowed to enter the system depending on ...

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.