codeGK
Code it ALL
Else-If in C# - CodeGK

♦ Else-If in C#

♣ Example3: Else-If in C#

else-if keyword is python's way of saying "if the previous condition/s is/were not true, then try current given condition" and execute the respective code block.
In this example, else-if condition is illustrated.
Example
Input:
Output:
If_else