Loops/While: Difference between revisions

m (→‎simple version: changed the version name. -- ~~~~)
Line 1,082:
 
=={{header|REXX}}==
===Version 1, fastest===
<lang rexx>/*REXX program demonstrates
j=1024
say 1024
say 512
say 256
say 128
say 64
say 32
say 16
say 8
say 4
say 2
say 1
end
/*stick a fork in it, we're done.*/</lang>
'''output'''
<pre style="height:30ex;overflow:scroll">
1024
512
256
128
64
32
16
8
4
2
1
stick a fork in it, we're done.
</pre>
===version 1, simple===
<lang rexx>/*REXX program demonstrates a DO WHILE with index reduction construct.*/
Anonymous user