Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Lisp

Idiom #256 Count backwards

Print the numbers 5, 4, ..., 0 (included), one line per number.

(dotimes (i 6) (print (- 5 i)))
for A in reverse 0 .. 5 loop
   Put_Line (A'Image);
end loop;

New implementation...
< >
programming-idioms.org