Logo

Programming-Idioms

History of Idiom 2 > diff from v2 to v3

Edit summary for version 3 by :

Version 2

2015-07-31, 18:46:09

Version 3

2015-07-31, 23:45:21

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Code
print "Hello\n" for 1 .. 10;
Code
print "Hello\n" for 1 .. 10;
Comments bubble
Note the necessary newline (\n), not to print every time on the same line