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