Anonymous user
Loops/Foreach: Difference between revisions
m
→version 1: made REXX compliant to the task description in using a DO ... FOR ... construct. -- ~~~~
m (→{{header|REXX}}: indented DO loops, added version names. -- ~~~~) |
m (→version 1: made REXX compliant to the task description in using a DO ... FOR ... construct. -- ~~~~) |
||
Line 1,031:
=={{header|REXX}}==
===version 1===
<lang rexx>days = "
end /*j*/</lang>▼
▲ do d = 1 to words(days)
▲ say word(days,d)
▲ end</lang>
===version 2===
<lang rexx>days = "sunday monday tuesday wednesday thursday friday saturday"
|