While

var i = 1024
while (i > 0) {
    say i
    i //= 2
}

Last updated