RosettaCodeData/Task/Loops-While/R/loops-while.r

7 lines
56 B
R

i <- 1024L
while(i > 0)
{
print(i)
i <- i %/% 2
}