Loops/While: Difference between revisions

Content added Content deleted
(Loops/While in Tiny BASIC)
(Loops/While in Asymptote)
Line 491: Line 491:
2
2
1</pre>
1</pre>

=={{header|Asymptote}}==
<lang Asymptote>int i = 1024;

while(i > 0) {
write(i);
i = i # 2; //or also i = quotient(i, 2);
}

//# Integer division; equivalent to quotient(x,y).
//Noting that the Python3 community adopted the comment symbol (//) for integer division, the
//Asymptote community decided to reciprocate and use their comment symbol for integer division!</lang>



=={{header|ATS}}==
=={{header|ATS}}==