Logo

Programming-Idioms

History of Idiom 256 > diff from v32 to v33

Edit summary for version 33 by Bryant:
New C++ implementation by user [Bryant]

Version 32

2022-12-15, 09:14:09

Version 33

2023-02-03, 08:16:31

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 (int i = 5; i >= 0; --i) {
	std::cout << i;
}