mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-25 03:18:39 +08:00
11 lines
169 B
Rust
Executable File
11 lines
169 B
Rust
Executable File
fn main() {
|
|
let a = [10, 20, 30, 40, 50];
|
|
let mut index = 0;
|
|
|
|
while index < 5 {
|
|
println!("the value is: {}", a[index]);
|
|
|
|
index += 1;
|
|
}
|
|
}
|