Loops/While: Difference between revisions
→Insitux: implementation
(Add LDPL) |
(→Insitux: implementation) |
||
Line 1,843:
say "[N][line break]";
let N be N / 2;</syntaxhighlight>
=={{Header|Insitux}}==
Use <code>/</code> for floating-point division, and use <code>(> i 0)</code> for full printing of the sequence (as the output of <code>1</code> here is due to the return of the last <code>while</code> statement).
<syntaxhighlight lang="insitux">
(var i 1024)
(while (> i 1)
(print i)
(var i (// i 2)))
</syntaxhighlight>
{{out}}
<pre>
1024
512
256
128
64
32
16
8
4
2
1
</pre>
=={{header|J}}==
|