Nested if Statements : Syntax of nested if statements : C++ Programming language

 

Nested if Statements : Syntax of nested if statements : C++ Programming language

Nested if Statements:

  • The statement that executes when the condition in an if statement is true can itself be an if statement. This arrangement is called a nested if.
  • The condition of the inner if is tested only if the condition for the outer if is true.
  • An if that is nested inside another can also contain a nested if.
  • You can nest ifs to whatever depth you require.

Syntax of Nested if Statements:

Syntax of Nested if Statements:

Syntax of Nested if Statements:



Post a Comment

0 Comments