RosettaCodeData/Task/Loops-For-with-a-specified-step/Scheme/loops-for-with-a-specified-step-1.ss
2016-12-05 22:15:40 +01:00

4 lines
180 B
Scheme

(do ((i 2 (+ i 2))) ; list of variables, initials and steps -- you can iterate over several at once
((>= i 9)) ; exit condition
(display i) ; body
(newline))