Logo

Programming-Idioms

History of Idiom 256 > diff from v7 to v8

Edit summary for version 8 by programming-idioms.org:
[Ruby] +DemoURL

Version 7

2021-03-10, 00:43:30

Version 8

2021-03-10, 09:13:12

Idiom #256 Count backwards

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

Idiom #256 Count backwards

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

Extra Keywords
countdown negative step reverse
Extra Keywords
countdown negative step reverse
Code
5.downto(0){|n| puts n }
Code
5.downto(0){|n| puts n }
Demo URL
https://repl.it/@ProgIdioms/DimgreyEntireSystem