Logo

Programming-Idioms

History of Idiom 2 > diff from v102 to v103

Edit summary for version 103 by df:
[C#] hh

Version 102

2019-10-31, 08:13:09

Version 103

2019-11-05, 05:30:26

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration
Code
for (int i = 0; i < 10; i++)
{
  System.Console.WriteLine("Hello");
}
Code
for (int i = 0; i < 100; i++)
{
  System.Console.WriteLine("Hello");
}