Jump to content

Loops/While: Difference between revisions

m
→‎Version 1, fastest: changed "dead code" to useless code, noted another REXX program error. -- ~~~~
(→‎{{header|REXX}}: marked as incorrect (for a multitude of reasons). -- ~~~~)
m (→‎Version 1, fastest: changed "dead code" to useless code, noted another REXX program error. -- ~~~~)
Line 1,083:
=={{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 deaduseless 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
Line 1,100:
/*stick a fork in it, we're done.*/</lang>
'''output'''
<pre style="height:30ex35ex;overflow:scroll">
1024
512
Line 1,114:
stick a fork in it, we're done.
</pre>
 
===version 1, simple===
<lang rexx>/*REXX program demonstrates a DO WHILE with index reduction construct.*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.