HOW DO I:
K = O
DO WHILE K < 15
K=K+ 1
L=0
DO WHILE L <200
I(L) =0
LOOP
LOOP
END
HOW DOES basic know which loop goes with whichdo statement?
nested do loops
nested do loops
new user, but willing to learn
-
- Veteran
- Posts: 288
- Joined: Sat Feb 18, 2006 4:02 pm
Pretty easily after all.
Last DO what is stated, is cut by first LOOP.
So you cant end first DO, before third and second are ended.
Last DO what is stated, is cut by first LOOP.
Code: Select all
DO ' first
DO ' second
DO ' third
LOOP ' third DO is last stated so its ended here
DO ' third is now out so second DO is ended here
LOOP ' only first DO alive so we end it here.