Define ‘if’and nested ‘if’ with the proper statements and example along with the syntax.
Answers
Answered by
1
Answer:
The IF statement executes or skips a sequence of statements, depending on the value of a Boolean expression.
Examples are comparisons for equality, greater-than, or less-than
A nested if statement is an if-else statement with another if statement as the if body or the else body. Here's an example: ... If the outer if condition evaluates to true, evaluate the outer if condition.
Similar questions