76.9k views
1 vote
An if-else statement that contains another if-else statement is said to be nested?

1.True
2.False

1 Answer

4 votes

Final answer:

An if-else statement that contains another if-else statement is indeed nested.

Step-by-step explanation:

A student has asked if an if-else statement that contains another if-else statement is nested. The correct answer is True. An if-else statement can contain another if-else statement, and this is called nesting. Nesting allows for more complex and conditional logic in programming.

User DrunkenMaster
by
8.4k points