Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/*REXX program to show a DO WHILE construct. */
|
||||
j=1024
|
||||
do while j>0
|
||||
say j
|
||||
j=j%2 /*in REXX, % is integer division. */
|
||||
end
|
||||
/*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.*/
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/*REXX program to show a DO WHILE construct. */
|
||||
x=1024
|
||||
do while x>0
|
||||
say right(x,10) /*pretty up the output by aligning.*/
|
||||
x=x%2 /*in REXX, % is integer division. */
|
||||
end
|
||||
/*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.*/
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/*REXX program to show a DO WHILE construct. */
|
||||
x=1024
|
||||
do while x>>0 /*this is an exact comparison. */
|
||||
say right(x,10) /*pretty up the output by aligning.*/
|
||||
x=x%2 /*in REXX, % is integer division. */
|
||||
end
|
||||
/*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