© 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  
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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.