@Sinani
Look at my tutorial I think my explanation is clear.
If you have a DO LOOP then everything in between the words DO and LOOP is inside the loop, so you would indent everything in between DO and LOOP. Then if you had a FOR NEXT inside the DO LOOP you'd indent the code within FOR and NEXT adding another level of indentation.
Think of it like windows file explorer
- File A
+ File AA
+ File AB
+ File B
+ File C
See how the indenting clearly shows which files are contained in File A, and if we open File AB the same thing happens
- File A
+ File AA
- File AB
+ File ABA
+ File ABB
+ File B
+ File C
So we could write a program like this
First we start with DO to begin our loop
Now lets add a FOR loop inside the DO loop
Now lets add some code inside the FOR loop
- DO
- For n = 1 to 10
print "hello"
Next n
LOOP
Now let's come out of that FOR loop and write some more code for the program
- DO
+ For...
Print "All Done"
Wait Key
CLS
LOOP
So written normally it would look like this
DO
For n = 1 to 10
print "hello"
Next n
Print "All Done"
Wait Key
CLS
LOOP
You get it now?