Anonymous user
Loops/For with a specified step: Difference between revisions
Added BBC BASIC
(Add XPL0 example) |
(Added BBC BASIC) |
||
Line 84:
next i
print "who do we appreciate?"</lang>
=={{header|BBC BASIC}}==
<lang bbcbasic> FOR n = 2 TO 8 STEP 1.5
PRINT n
NEXT</lang>
Output:
<pre>
2
3.5
5
6.5
8
</pre>
=={{header|C}}==
|