Nested if Statement:-
An if statement within an if statement is called nested if statement. in nested structure, the control enters into the inner if only when the outer condition is true. Only one block of statements are executed and the remaining blocks are skipped automatically.
The user can use as many if statement inside another if statement as required. The increase in the level of complexity of nested if statement.
Syntax:-
No comments:
Post a Comment
Thanks for comment