creation: 08/08/99; revised: 08/23/2010
Rule for Matching if and else: Within each pair of matching braces: start with the firstif
and work downward. Eachelse
matches the closest previous unmatchedif
. Anif
matches only oneelse
and anelse
matches only oneif
.
End of the Exercise. If you want to do it again, click on "Refresh" in your browser window.