a guest Nov 24th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- puts 'Pick a starting year (like 1973 or something):'
- starting = gets.chomp.to_i
- puts 'Now pick an ending year:'
- ending = gets.chomp.to_i
- puts 'Check it out... these years are leap years:'
- (starting..ending).each do |year|
- != 0
- next if year%4
- next if year%100 == 0 && year%400 != 0
- puts year
RAW Paste Data