Skip to content

Commit

Permalink
Ref #3 | Adiciona resposta exercício 2 - Elton
Browse files Browse the repository at this point in the history
  • Loading branch information
eltonsm20 committed Aug 28, 2019
1 parent aef73c9 commit 7710351
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Capitulo_6/2/Elton.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
puts 'Qual sua idade?'
idade = gets.to_i

if idade >=18
puts 'Você é maior de idade'

else
puts 'Você é menor de idade'

end

0 comments on commit 7710351

Please sign in to comment.