user21044962
user21044962

Reputation:

how to use the command "for" in logo

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

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

Upvotes: -1

Views: 31

Answers (1)

DanielAjoy
DanielAjoy

Reputation: 31

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

Upvotes: 1

Related Questions