From: Dana Merrick Date: 2008-04-28T12:10:48+09:00 Subject: Re: Counting Program --------------enig52119DAAEA3357833D5FEF6E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable I didn't know that! That's awesome. -Dana David A. Black wrote: > Hi -- >=20 > On Thu, 24 Apr 2008, Dana Merrick wrote: >=20 >> Dan Diebolt wrote: >>>> it's as simple as ... >>> >>> adding an argument list: >>> >>> 10.times do |time1| >>> puts time1+1 >>> end >>> >> >> Or even use a range: >> >> (1..10).each { |num| p num } >=20 > If you really just want to print out the numbers: >=20 > puts *1..10 >=20 >=20 > David >=20 --------------enig52119DAAEA3357833D5FEF6E 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) iEYEARECAAYFAkgVQDIACgkQ7b+8UB5G/wOexACglmU49P1lejAoL2ZLrFpk5QnV tHgAoJBLR67RDnq196jswUKesAQa3VCQ =nVKH -----END PGP SIGNATURE----- --------------enig52119DAAEA3357833D5FEF6E--