Skip to content

Commit

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

if num.even?
puts "O número #{num} é par"

else
puts "O número #{num} é ímpar"

end

0 comments on commit dc2c1b5

Please sign in to comment.