gem
 

Rules:

  1. Implement a program that takes in a user's name and their age, and prints hello to them once for every year that they have been alive.
  2. Post these rules, the source code for your solution, and the following list (with you included) on your blog.
  3. Bonus points if you implement it in a language not yet seen on the following list!

The List:

  1. [Python] http://www.eflorenzano.com/blog/post/trying-start-programming-meme
  2. [Bash] http://aartemenko.com/texts/bash-meme/
  3. [Ruby]  http://stroky.l.googlepages.com/gem
puts "Qu'elle est ton nom ?"
nom = gets.chomp
puts "Qu'elle est ton age ?"
age = gets.chomp.to_i
i= 1
age.times {
puts i.to_s + ") Bonjour, " + nom
i = i + 1
}

1) Bonjour, Luc
2) Bonjour, Luc
3) Bonjour, Luc
4) Bonjour, Luc
5) Bonjour, Luc
6) Bonjour, Luc
7) Bonjour, Luc
8) Bonjour, Luc
9) Bonjour, Luc
10) Bonjour, Luc
11) Bonjour, Luc
12) Bonjour, Luc
13) Bonjour, Luc
14) Bonjour, Luc
15) Bonjour, Luc
16) Bonjour, Luc
17) Bonjour, Luc