Loops/While: Difference between revisions
Content added Content deleted
(→{{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: | Line 1,083: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
===Version 1, fastest=== |
===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 |
{{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 |
<lang rexx>/*REXX program demonstrates |
||
j=1024 |
j=1024 |
||
Line 1,100: | Line 1,100: | ||
/*stick a fork in it, we're done.*/</lang> |
/*stick a fork in it, we're done.*/</lang> |
||
'''output''' |
'''output''' |
||
<pre style="height: |
<pre style="height:35ex;overflow:scroll"> |
||
1024 |
1024 |
||
512 |
512 |
||
Line 1,114: | Line 1,114: | ||
stick a fork in it, we're done. |
stick a fork in it, we're done. |
||
</pre> |
</pre> |
||
===version 1, simple=== |
===version 1, simple=== |
||
<lang rexx>/*REXX program demonstrates a DO WHILE with index reduction construct.*/ |
<lang rexx>/*REXX program demonstrates a DO WHILE with index reduction construct.*/ |