Selection Construct Csharp
Selection Construct Csharp
STATEMENTS IN C#
SELECTION CONSTRUCT OR
STATEMENT
• Is a programming construct supported by C# that controls the flow of a
program.
• Executes a particular block of statements based on a boolean condition,
which is an expression returning true or false.
• Is referred to as a decision-making construct.
• Allow you to take logical decisions about executing different blocks of a
program to achieve the required logical output.
SELECTION CONSTRUCT OR
STATEMENT
• C# supports the following decision-making constructs:
• if…else
• if…else…if
• Nested if
• switch…case
• Nested Switch Case
THE IF STATEMENT