i = 1024; while (i > 0) disp(i) i = floor(i/2); endwhile