Курси /
C# Basics
else Keyword
There is an else
keyword which can be used for executing a block of code if the condition is not met.
Syntax:
Example:
main.cs
The following diagram explains the flow of if-else statement:
Все було зрозуміло?
Секція 3. Розділ 7
Зміст курсу
C# Basics
C# Basics
else Keyword
There is an else
keyword which can be used for executing a block of code if the condition is not met.
Syntax:
Example:
main.cs
The following diagram explains the flow of if-else statement:
Все було зрозуміло?
Секція 3. Розділ 7