Skip to content

Commit

Permalink
Ref #8 | Adiciona Resolução de Henrique
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueMariano25 committed Aug 28, 2019
1 parent 6b6a881 commit 3a0af4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Capitulo_8/3/henrique_mariano.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
puts "Ano inicial: "
ano_inicial = gets.to_i

puts "Ano final: "
ano_final = gets.to_i

for bi in ano_inicial..ano_final
if bi % 4 == 0 && (bi % 400 == 0 || bi % 100 != 0)
puts bi
end
end

0 comments on commit 3a0af4f

Please sign in to comment.