Loops/Do-while: Difference between revisions

(→‎{{header|Chipmunk Basic}}: Added an output.)
Line 2,704:
end
</syntaxhighlight>
 
=={{header|RPL}}==
To ensure at least one loop, <code>DO</code>..<code>UNTIL</code>..<code>END</code> must be used rather than <code>WHILE</code>..<code>REPEAT</code>..<code>END</code>. To actually print (on paper) instead of pushing in the stack successive results, the <code>DUP</code> instruction inside the loop shall be replaced by <code>PR1</code>
≪ 0
'''DO'''
1 + DUP
'''UNTIL''' DUP 6 MOD 0 == '''END'''
DROP
 
=={{header|Ruby}}==
1,151

edits