Confused about the for/loop statement.

army88m2

New member
Joined
Jul 10, 2008
Messages
3
Programming Experience
Beginner
Hello all this is my first scripting class and I am having some difficulty here. I am very confused about the for/loop statement. can anybody help me understand this?
 
Does this look ok for this question? Write a pseudocode for a program that uses a for/loop to print the numbers from 20 to 25.


for labelCounter = 20 to 25
print 20 to 25
endfor
 
For loops always close with a 'Next' so your loop would be:
For labelCounter = 20 to 25
print 20 to 25
Next
 
Back
Top