Handout #1 An example of Nested IF statements: Get x IF (x >= 0) THEN IF (x < 50) THEN PUT "F" ELSE IF (x < 60) THEN PUT "D" ELSE IF (x < 70) THEN PUT "C" ELSE IF (X < 80) THEN PUT "B" ELSE IF (x <= 100) THEN PUT "A" ELSE PUT "ERROR: x > 100" END IF END IF END IF END IF END IF ELSE PUT "ERROR: x < 0" END IF Note: 1) This is more efficient in 2 ways from the previous algorithm - only checks one side of the condition - the other side is implicit if you reach this point - exits after you reach a true condition 2) Use of indentation - "correct" but hard to read and see meaning