RosettaCodeData/Task/Loops-While/Asymptote/loops-while.asymptote
2023-07-01 13:44:08 -04:00

10 lines
335 B
Text

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!