Skip to content

Instantly share code, notes, and snippets.

@coryschires
Created May 10, 2012 15:04
Show Gist options
  • Save coryschires/2653739 to your computer and use it in GitHub Desktop.
Save coryschires/2653739 to your computer and use it in GitHub Desktop.
leap year
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