Contact: aviboots(AT)netvision.net.il
40,760 questions
53,134 answers
573 users
1.upto(3) do |i| # from 1 to 1 * 2 # from 2 to 2 * 2 # from 3 to 3 * 2 i.upto(i * 2) do |j| print j, " " end print "\n" end # run: # # 1 2 # 2 3 4 # 3 4 5 6