Untitled diff

Created Diff never expires
3 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
9 lines
4 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
10 lines
while count_year <= end_year
while count_year >= end_year
if count_year % 4 == 0
if count_year % 4 == 0
if count_year % 100 != 0
if count_year % 100 != 0
all_years << count_year unless (count_year % 400 == 0)
all_years << count_year unless (count_year % 400 == 0)
end
end
end
end
count_year += 1
count_year -= 1
end
end
puts all_years
puts all_years.reverse
end