C# Beginner to advanced - Lesson 8 - Program Control Statements Part 1

مجله خبری، آموزشی پرشین تک
منتشر شده در 11 خرداد 1397

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.

دیدگاه کاربران