Logo

Programming-Idioms

History of Idiom 256 > diff from v2 to v3

Edit summary for version 3 by programming-idioms.org:
New Lua implementation by user [programming-idioms.org]

Version 2

2021-03-09, 13:26:12

Version 3

2021-03-09, 13:50:15

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
for i=5, 0, -1 do
	print(i)
end
Demo URL
http://codepad.org/lSAKeAnm