2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,7 +1,10 @@
|
|||
do i=1 to 5
|
||||
s=''
|
||||
do j=1 to i
|
||||
s=s || '*'
|
||||
end
|
||||
say s
|
||||
end
|
||||
/*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. */
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
do i=1 for 5
|
||||
s=''
|
||||
do i
|
||||
s=s'*'
|
||||
end
|
||||
say s
|
||||
end
|
||||
/*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