From: Peter Bunyan Date: 2008-04-26T07:29:57+09:00 Subject: Re: Counting Program print "Upto what number? " # ask the question max = gets.to_i # get a string and convert it to a number puts *(1..max) # creates a range from 1 to max, then turns it into an array, then prints each one. -- Posted via http://www.ruby-forum.com/.