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 787ff97 commit ea3f253
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Capitulo_8/1/henrique_mariano.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
puts "Quantas vezes vai repetir os elefantes"
repeticao = gets.to_i
for x in 1..repeticao
if x % 2 == 0
puts "#{x} elefantes #{"incomodam "*x}muito mais"
elsif x == 1
puts "1 elefante incomodam muita gente"
else
puts "#{x} incomodam muita gente"
end
end

0 comments on commit ea3f253

Please sign in to comment.