--------------enig4BF71E4D3DD1DC34AF50E80F
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 10/01/2010 03:00 PM, Mica Koizumi wrote:
> Thank you Jeremy! I changed:
>=20
> if year1.to_i % 4 =3D=3D 0
>   leapyear =3D year1.to_i + 4
>   puts leapyear
>=20
>  to:
>=20
> if year1.to_i % 4 =3D=3D 0
>  year1 =3D year1.to_i + 4
>   puts year1
>=20
>=20
> and that helped a great deal. I see now that I was not evaluating the=20
> incrementation.
>=20
> You guys have been a great help!

I have another suggestion to help simplify your code a bit.  Replace
these lines:

year1 =3D gets.chomp
year2 =3D gets.chomp

With:

year1 =3D gets.chomp.to_i
year2 =3D gets.chomp.to_i

Now you can drop all the .to_i business elsewhere in this code since
year1 and year2 will be integers from the beginning.

-Jeremy


--------------enig4BF71E4D3DD1DC34AF50E80F
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.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkymQe0ACgkQHt4KKRq6ZjfgRACfVjsXSQzgS0g6flz7bG3aB+th
jJ0An2B41+hplbMMoZ91l0AoJ4U2bPLD
=K/fo
-----END PGP SIGNATURE-----

--------------enig4BF71E4D3DD1DC34AF50E80F--