[Solved] Multiple Else If expecting a statement in C? [closed]


For starters there is no elseif statement in C++.There are if and if-else statements in C++.

Also you have to remove mistaken semicolons at the end of if or else with if statements.

And the conditions are also written incorrectly.

A valid else statement can look for example like

else if ( dateOfBirth == 2009 || dateOfBirth == 1997 || dateOfBirth == 1985 || dateOfBirth == 1973 || dateOfBirth == 1961 )
{ 
//...
}

2

solved Multiple Else If expecting a statement in C? [closed]