Looping using from/to
(defun mycount (start-num end-num)
(loop
for num from start-num to end-num
do
(print num)))
(mycount 1 4)
1
2
3
4
NIL
Previous slide
Next slide
Back to first slide
View graphic version