(1..5).each do |i| (1..i).each do |j| print "*" end puts end