nombre y arreglos2

This commit is contained in:
2023-06-08 18:43:55 +02:00
parent 07d62f050e
commit 6e1cd4e0fc
6 changed files with 51 additions and 8 deletions

13
nombre/src/main.rs Normal file
View File

@@ -0,0 +1,13 @@
fn main() {
'bucle_externo: for x in 0..10 {
'bucle_interno: for y in 0..10 {
if x % 2 == 0 {
continue 'bucle_externo;
}
if y % 2 != 0 {
continue 'bucle_interno;
}
println!("X: {}, Y: {}", x, y);
}
}
}