Computer Science, asked by mohit783804, 4 months ago

Define ‘if’and nested ‘if’ with the proper statements and example along with the syntax.

Answers

Answered by shakshiroy
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