User Tools

Site Tools


en:for

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:for [2017/08/15 06:07]
junior-root
en:for [2020/04/26 22:26] (current)
admin
Line 12: Line 12:
 ==== Example ==== ==== Example ====
 <code> <code>
-for i = 1 to 10+for i = 1 to 5
  print i  print i
 next i next i
  
 print "after the for " + i print "after the for " + i
 +
 +for k = 5 to 1 step -1
 + ? k
 +next
 </code> </code>
 displays displays
Line 25: Line 29:
 4 4
 5 5
-+after the for 
-7 +5 
-8 +4 
-9 +3 
-10 +2 
-after the for 11+1
 </code> </code>
  
 ==== See Also ==== ==== See Also ====
 {{page>en:start#Program Control&noheader}} {{page>en:start#Program Control&noheader}}
 +
 +==== History ==== 
 +|2.0.0.0|Variable in Next statement is now optional|
en/for.1502798839.txt.gz · Last modified: 2020/02/28 10:46 (external edit)