codeGK
Code it ALL
Else in C# - CodeGK

♦ Else in C#

♣ Example2: Else in C#

else condition block is executed when all prior conditions(if condition, else-if condition(s)) are false.
In this example, else condition is illustrated.
Example
Input:
Output:
If_else