organizado en carpetas
This commit is contained in:
8
curso_tinchicusls/nombre/Cargo.toml
Normal file
8
curso_tinchicusls/nombre/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "nombre"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
13
curso_tinchicusls/nombre/src/main.rs
Normal file
13
curso_tinchicusls/nombre/src/main.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user