Loops/While: Difference between revisions
→{{header|Ruby}}: Improved readability
(→{{header|Prolog}}: show how to start Prolog execution) |
(→{{header|Ruby}}: Improved readability) |
||
Line 1,281:
i /= 2
end</lang>
The above can be written in one statement
<lang ruby>puts i = 1024
puts
<code>until ''condition''</code> is equivalent to <code>while not ''condition''</code>.
Line 1,292:
i /= 2
end</lang>
=={{header|Run BASIC}}==
<lang runbasic>i = 1024
|