From: Stephen Ball Date: 2007-06-19T02:31:53+09:00 Subject: Re: Another Easy Beginner Question Remember to count each gift for each day (on the second day you get another bird in a tree, on the third day you get two more doves and another bird in a tree, etc.) day = 0 gifts_for_the_day = 0 total_gifts = 0 12.times do day += 1 gifts_for_the_day += day total_gifts += gifts_for_the_day puts "Day: #{day}, Gifts for Day: #{gifts_for_the_day}, Total gifts: #{total_gifts}" end -- Stephen On 6/18/07, danielj wrote: > I just wanted to do the challenge correctly... > > Although, maybe I shouldn't be doing a tutorial with that kind of lame > challenge... > > >