Program of Nested If-Else Statement
If we have a entire if-else construct within either the body of an if statement or the body of an else statement, then this construct is known as nesting of if statementSyntax
if(condition 1){
if(condition 2)
statement-block-1;
else
statement-block-2;
}
else
statement-block-3;
1 Comments
Good
ReplyDelete