fn main() { let mut n: i32 = 1024; while n > 0 { println!("{}", n); n /= 2; } }