Investigate 10.2.
Is there a difference between the two following scenarios, if the same statements are used within each element?
-
Nesting an
ifstatement within a loop -
Nesting a loop within an
ifstatement
for and if together
if statement within a loopif statement