Loops/While: Difference between revisions

1,044 bytes removed ,  10 years ago
→‎Version 1, fastest: removed this inappropriate entry (bad joke)
m (move Nemerle)
(→‎Version 1, fastest: removed this inappropriate entry (bad joke))
Line 1,082:
 
=={{header|REXX}}==
===Version 1, fastest===
{{incorrect|REXX| -- The program doesn't use a ''loop'' or any looping mechanism.<br>-- Program doesn't use any type of ''while'' construct.<br>-- Program doesn't do any division (by 2).<br>-- Incorrectly named version (two version 1).<br>-- Program has useless code.<br>-- Program has a syntax error.<br>-- Program won't execute because of unmatched comment delimitors.<br>-- Program author hasn't even executed the code.<br>-- Output has part of the code's comment included.<br>-- Output was just pasted from another version.<br>}}
<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:35ex;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.*/
2,295

edits