Archived
entrada, argumento, bucles y condición
This commit is contained in:
1 parent
c945ae68ec
commit
bf9b2271d0
9 files changed
+105
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
fn main() {
|
||||
let mi_arreglo = ["Lovecraft", "Poe", "Barker", "King"];
|
||||
|
||||
for (pos, apellido) in mi_arreglo.iter().enumerate() {
|
||||
println!("{} esta en la posicion {}", apellido, pos);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user