On 1 Apr 2006 07:32:50 -0800, jzakiya / mail.com wrote: Cool. >------------------------------------------------------------------------------- > puts 'Please enter the starting year' > input = gets.chomp.to_i # Convert to Integer > puts 'Please enter the ending year' > input2 = gets.chomp.to_i # Convert to Integer > puts > puts 'The following are leap years:' > > while input <= input2 > if inputi % 100 != 0 && input % 4 == 0 || input % 400 == 0 > puts input.to_s > end > input = input + 1 > end