C++ Nested if

C++ nested if Control Statement

Nested if control statement refers to if condition within if condition. C++ compiler checks nested ifcontrol statement when its parent if condition returns true and then program is executed according to nested if condition.

Syntax

C++ nested if Example

Output