Computer Science for IGCSE & O level - Programming (Section 6 - No. 38)

Which of the following statements correctly illustrates the use of a nested IF statement?
IF condition1 THEN statement1 ENDIF IF condition2 THEN statement2 ENDIF
IF condition1 THEN IF condition2 THEN statement1 ENDIF ENDIF
IF condition1 AND condition2 THEN statement1 ENDIF
IF condition1 OR condition2 THEN statement1 ENDIF

Explanation

A nested IF statement is an IF statement within another IF statement.

Comments (0)

Advertisement