--------------enigB0470702759C553350981862 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable I suppose if we're golfing: p "Upto what number?"; p *1..gets.to_i -Dana Peter Bunyan wrote: > 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. --------------enigB0470702759C553350981862 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkgVQCEACgkQ7b+8UB5G/wO8jwCdHF0tU+AodMC69hQAZyq/B7J1 nbgAnR4NT+q2TRBzk0EJYtjtX8U3T+vX SF -----END PGP SIGNATURE----- --------------enigB0470702759C553350981862--