#for loops

25 messages · Page 1 of 1 (latest)

sweet forge
#

shouldnt it start at 6?

mystic acornBOT
#

Hey, @sweet forge!
Please remember to /close this post once your question has been answered!

sweet forge
#

and also whats the difference between print out ln and without ln

crystal linden
sweet forge
crystal linden
crystal linden
sweet forge
#

?

crystal linden
#

i is incremented after the first run of the loop, not before

#

So the initial value of i is 5

#

Since that's what you set it to be

sweet forge
sweet forge
#

whats a newline character?

crystal linden
#

Yes. The official word for a "run" is an iteration

crystal linden
sweet forge
#

ah but println also prints without enter

#

@crystal linden

ripe cosmos
ripe cosmos
crystal linden
#

print will print "5678910", println should print:
5
6
7
8
9
10

mystic acornBOT
# mystic acorn

Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.