Logo

Programming-Idioms

History of Idiom 256 > diff from v25 to v26

Edit summary for version 26 by m1ritchie:
New Java implementation by user [m1ritchie]

Version 25

2021-11-11, 22:26:03

Version 26

2022-01-27, 18:55:35

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--){
    System.out.println(i);
    }