In C# there are three categories of program control statements:
Selection Statements - if and Switch.
Iteration Statements - for, while, do-while, and foreach loops.
Jump Statements - break, continue, goto, return, and throw.
if Statement
With an if-statement, we make a logical decision based on it. In an if-statement, we test expressions.
Test expressions evaluate to true or false.