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