Loops/Foreach: Difference between revisions
Content added Content deleted
m (Added Sidef language) |
m (→{{header|REXX}}: uncoupled abutted REXX comments.) |
||
Line 1,311: | Line 1,311: | ||
do j=1 for words(days) /*loop through days of the week. */ |
do j=1 for words(days) /*loop through days of the week. */ |
||
say word(days,j) /*display the weekday to screen. */ |
say word(days,j) /*display the weekday to screen. */ |
||
end |
end /*j*/ /*stick a fork in it, we're done.*/</lang> |
||
=={{header|Ruby}}== |
=={{header|Ruby}}== |