Skip to content

Instantly share code, notes, and snippets.

View mrandyclark's full-sized avatar

Andrew Clark mrandyclark

View GitHub Profile
# If you put in a beginning year and an end year, it should spit out a list of
# all of the leap years in between.
puts 'Hello. What year would you like to begin with?'
@start_year=gets.chomp
puts 'What year would you like to end with?'
@end_year=gets.chomp
input=''
while @start_year < @end_year