how to use the command "for" in logo

25 Views Asked by At

I'm not sure how to use the "for" command in logo. Can you help me

‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎

1

There are 1 best solutions below

0
DanielAjoy On

If you are using UCBLogo, MSWLogo or FMSLogo you can use for in this way:

for [i 2 10] [show :i]
2
3
4
5
6
7
8
9
10

And if you want to use a step number you can do it this way:

for [i 2 10 2] [show :i]
2
4
6
8
10