Skip to content

Instantly share code, notes, and snippets.

@vshvedov
Created February 9, 2012 21:40
Show Gist options
  • Save vshvedov/1783467 to your computer and use it in GitHub Desktop.
Save vshvedov/1783467 to your computer and use it in GitHub Desktop.
Can you write a ruby script (hello.rb), which would give me such outputs:
$> ./hello.rb
01) Hello
02) Hello
03) Hello
04) Hello
05) Hello
06) Hello
07) Hello
08) Hello
09) Hello
10) Hello World
11) Hello
12) Hello
13) Hello
14) Hello
15) Hello
16) Hello
17) Hello
18) Hello
19) Hello
20) Hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment