User talk:Idrougge: Difference between revisions

m
→‎Loops/For: expanded the wording and explanation.
m (→‎Loops/For: added a new talk section.)
m (→‎Loops/For: expanded the wording and explanation.)
 
Line 212:
 
 
(The highlighting was added by me.   Note that both inner and outer '''DO''' loops are both '''FOR''' loops.)
 
This particular Rosetta Code task isn't about using the simplest '''DO''' loop loop,   but to demonstrate how the outer '''DO''' loop with a '''FOR''' construct is to control the inner '''DO''' loop with a '''FOR''' construct.   I do agree that the inner '''DO''' loop can be coded more simpler,   (and indeed, it could've even been coded without a '''DO''' loop),   but the task's requirements dictatedictated/directdirected otherwise.   I don't know if the task's author had in mind '''DO''' loops or '''FOR''' loops,   but I interpreted the author's intent as a '''DO''' loop with a '''FOR''' keyword to control the number of iterations,   which is the closest construct that REXX has to mimic a '''FOR''' statement that is used in other computer programming languages.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 19:49, 4 June 2020 (UTC)