Created
May 10, 2012 15:04
-
-
Save coryschires/2653739 to your computer and use it in GitHub Desktop.
leap year
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "What is your start year? " | |
start = gets.chomp.to_i | |
print "What is your finish year? " | |
finish = gets.chomp.to_i | |
while finish > start | |
puts finish -= 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment