Writing the if statement with-in another if is called as nested-if. State whether the statement is True (or) False And Justify it
Answers
Answered by
6
yes it is true ....it is called so because an if is nested of inside another if statement
Answered by
5
Yes, writing the ‘if’ statement with-in another if is called as nested-if.
The nested-if statements are the one that means that the ‘if’ statement will follow under another of the ‘if’ condition in the programming language.
if (condition1)
{
// Executes when condition1 is true
if (condition2)
{
// Executes when condition2 is true
}
}
Similar questions