© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
R. VystavělC# Programming for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7147-6_15

15. Getting Started with Conditions

Radek Vystavěl1  
(1)
Ondřejov, 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 ...

Get C# Programming for Absolute Beginners: Learn to Think Like a Programmer and Start Writing Code 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.