Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Loops-Foreach/Yabasic/loops-foreach.basic
Normal file
15
Task/Loops-Foreach/Yabasic/loops-foreach.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//Yabasic tampoco tiene una construcción ForEach.
|
||||
//Mediante un bucle FOR iteramos a través de una matriz por índice.
|
||||
//READ-DATA se usa para rellenar la matriz
|
||||
|
||||
dim arreglo(10)
|
||||
data 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
|
||||
for each = 0 to arraysize(a(),1)
|
||||
read arreglo(each)
|
||||
next each
|
||||
|
||||
for each = 0 to arraysize(a(),1)
|
||||
print arreglo(each), " ";
|
||||
next each
|
||||
print
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue