Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Leap Year Ruby
Branch: master
Failed to load latest commit information.
README
leap.rb comments

README

*****Poblem From Learn To Program by Chris Pine - My Soution*****

Inspiring article for those teaching themselves to code
http://innonate.com/hope/

Write a program that asks for a starting year and an
ending year and then puts all the leap years between them (and
including them, if they are also leap years). Leap years are years
divisible by 4 (like 1984 and 2004). However, years divisible by
100 are not leap years (such as 1800 and 1900) unless they are
also divisible by 400 (such as 1600 and 2000, which were in fact
leap years). What a mess

-------------------------------------------------
Additional Resor

http://kalender-365.de/leap-years.php   # To check your program




Something went wrong with that request. Please try again.