Skip to content

Commit

Permalink
Ref #3 | Resolvido exercício 01
Browse files Browse the repository at this point in the history
  • Loading branch information
andrealonso committed Aug 28, 2019
1 parent 6ff4754 commit 1703c1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Capitulo_6/1/Exec_cap6_01.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
puts "Informe sua nota:"
nota = gets.to_f

if nota >= 6
puts "Você foi aprovado!"
else
puts 'Você foi reprovado!'
end

0 comments on commit 1703c1b

Please sign in to comment.