Loops/For with a specified step: Difference between revisions
Content added Content deleted
(Add XPL0 example) |
(Added BBC BASIC) |
||
Line 84: | Line 84: | ||
next i |
next i |
||
print "who do we appreciate?"</lang> |
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}}== |
=={{header|C}}== |