+1-617-874-1011 (US)

  +44-117-230-1145 (UK)

Else if statement

Don’t you think, nesting If – Else Statement causes lots of problems, especially with the { } sign and the conditions. Here is the solution to this problem.

Else if statement Syntax:

if ( condition 1)
Statement to be executed when statement 1 is true;
else if (condition 2)
Statement to be executed when statement 2 is true;
else
Statement to be executed otherwise;

Else if statement Homework Help

Topics in C Programming