Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Loops-While/REXX/loops-while-1.rexx
Normal file
7
Task/Loops-While/REXX/loops-while-1.rexx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*REXX program demonstrates a DO WHILE with index reduction construct.*/
|
||||
j=1024 /*define the initial value of J.*/
|
||||
do while j>0 /*test if made at the top of DO.*/
|
||||
say j
|
||||
j=j%2 /*in REXX, % is integer division.*/
|
||||
end
|
||||
/*stick a fork in it, we're done.*/
|
||||
7
Task/Loops-While/REXX/loops-while-2.rexx
Normal file
7
Task/Loops-While/REXX/loops-while-2.rexx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*REXX program demonstrates a DO WHILE with index reduction construct.*/
|
||||
x=1024 /*define the initial value of X.*/
|
||||
do while x>0 /*test if made at the top of DO.*/
|
||||
say right(x,10) /*pretty output by aligning right*/
|
||||
x=x%2 /*in REXX, % is integer division.*/
|
||||
end
|
||||
/*stick a fork in it, we're done.*/
|
||||
7
Task/Loops-While/REXX/loops-while-3.rexx
Normal file
7
Task/Loops-While/REXX/loops-while-3.rexx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*REXX program demonstrates a DO WHILE with index reduction construct.*/
|
||||
x=1024 /*define the initial value of X.*/
|
||||
do while x>>0 /*this is an exact comparison. */
|
||||
say right(x,10) /*pretty output by aligning right*/
|
||||
x=x%2 /*in REXX, % is integer division.*/
|
||||
end
|
||||
/*stick a fork in it, we're done.*/
|
||||
7
Task/Loops-While/REXX/loops-while-4.rexx
Normal file
7
Task/Loops-While/REXX/loops-while-4.rexx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*REXX program demonstrates a DO WHILE with index reduction construct.*/
|
||||
/* [↓] note: BY defaults to 1*/
|
||||
do j=1024 by 0 while j>>0 /*this is an exact comparison. */
|
||||
say right(j,10) /*pretty output by aligning right*/
|
||||
j=j%2 /*in REXX, % is integer division.*/
|
||||
end
|
||||
/*stick a fork in it, we're done.*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue