The control statements are used to control the flow of execution of the program. If you want to execute a specific block of instructions only when a certain condition is true, then control statements are useful. If you want to execute a block repeatedly, then loops are useful.
In this tutorial we will cover the various control statements in C# along with code examples to understand how to use them in programs.
1. if...else statement
2. if...else if...else statements
3. switch statement
4. goto statement