RosettaCodeData/Task/Loops-While/REXX/loops-while-1.rexx
2014-01-17 05:34:36 +00:00

7 lines
401 B
Rexx

/*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.*/