Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Loops-For/REXX/loops-for-1.rexx
Normal file
9
Task/Loops-For/REXX/loops-for-1.rexx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*REXX program demonstrates an outer DO loop controlling the inner DO loop with a "FOR".*/
|
||||
|
||||
do j=1 for 5 /*this is the same as: do j=1 to 5 */
|
||||
$= /*initialize the value to a null string*/
|
||||
do k=1 for j /*only loop for a J number of times*/
|
||||
$= $ || '*' /*using concatenation (||) for build.*/
|
||||
end /*k*/
|
||||
say $ /*display character string being built.*/
|
||||
end /*j*/ /*stick a fork in it, we're all done. */
|
||||
9
Task/Loops-For/REXX/loops-for-2.rexx
Normal file
9
Task/Loops-For/REXX/loops-for-2.rexx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*REXX program demonstrates an outer DO loop controlling the inner DO loop with a "FOR".*/
|
||||
|
||||
do j=1 for 5 /*this is the same as: do j=1 to 5 */
|
||||
$= /*initialize the value to a null string*/
|
||||
do k=1 for j /*only loop for a J number of times*/
|
||||
$= $'*' /*using abutment for the construction. */
|
||||
end /*k*/
|
||||
say $ /*display character string being built.*/
|
||||
end /*j*/ /*stick a fork in it, we're all done. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue