Loops/For with a specified step: Difference between revisions

→‎{{header|REXX}}: added another version. -- ~~~~
(→‎{{header|REXX}}: added another version. -- ~~~~)
Line 895:
 
=={{header|REXX}}==
===version 1===
<lang rexx> do x=1 to 10 by 1.5
say x
Line 908 ⟶ 909:
10.0
</pre>
 
===version 2===
<lang rexx> do x=1 by 3/2 to 10
say x
end</lang>
'''output''' is the same as above.
<br><br>
 
=={{header|Ruby}}==