CPP if
block is true otherwise it executes the statements of else
block. if in if
. When the condition of first if
statement is false, then it checks for next if
block. If true, executes statements in inner if
block otherwise nested-if statement executes else
block statements.