For over reversed range
This commit is contained in:
parent
7b25d7660d
commit
c49281b26d
@ -1,7 +1,6 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
let a = [10, 20, 30, 40, 50];
|
for number in (1..4).rev() {
|
||||||
|
println!("{}!", number);
|
||||||
for element in a.iter() {
|
|
||||||
println!("the value is: {}", element);
|
|
||||||
}
|
}
|
||||||
|
println!("LIFTOFF!!!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user