Logo

Programming-Idioms

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

Idiom #256 Count backwards

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

for A in reverse 0 .. 5 loop
   Put_Line (A'Image);
end loop;

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