Loops/While: Difference between revisions

Add lang example
(putting my knowledge of the Rockstar language to the test, but at least I copied down the JavaScript and Python versions of the task to help me do a line-by-line translation)
(Add lang example)
Line 1,926:
{loops_while 1024}
-> 1024 512 256 128 64 32 16 8 4 2 1 (end of loop)
</syntaxhighlight>
 
=={{header|Lang}}==
<syntaxhighlight lang="lang">
$n = 1024
while($n > 0) {
fn.println($n)
$n //= 2
}
</syntaxhighlight>
 
168

edits