Programming-Idioms

History of Idiom 2 > diff from v81 to v82

Edit summary for version 82 :
[Csharp] fix spacing, removed ! from "hello !"

Version 81

2019-09-26, 19:10:31

Version 82

2019-09-26, 20:12:51

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 < 10; i++)
{
  System.Console.WriteLine("Hello");
}