Logo

Programming-Idioms

History of Idiom 256 > diff from v16 to v17

Edit summary for version 17 by zqwnvl:
New C# implementation by user [zqwnvl]

Version 16

2021-08-23, 02:58:46

Version 17

2021-08-23, 02:59:36

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
Imports
using System;
Code
for (int i = 5; i >= 0; i--)
{
    Console.WriteLine(i);
}