Skip to content

Commit

Permalink
Ref #3 | 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 da6c4c2 commit 102b521
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Capitulo_6/2/henrique_mariano.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
puts "Insira a sua idade"
idade = gets.to_i

if idade >= 18
puts "Maior de idade"
else
puts "Menor de idade"
end

0 comments on commit 102b521

Please sign in to comment.