7 lines
108 B
Text
7 lines
108 B
Text
fn main() {
|
|
let mut n: i32 = 1024;
|
|
while n > 0 {
|
|
println!("{}", n);
|
|
n /= 2;
|
|
}
|
|
}
|