From 1703c1b596d019aa59b0f36ea4d7ab8b2c298aba Mon Sep 17 00:00:00 2001 From: andrealonso Date: Tue, 27 Aug 2019 21:08:04 -0300 Subject: [PATCH] =?UTF-8?q?Ref=20#3=20|=20Resolvido=20exerc=C3=ADcio=2001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Capitulo_6/1/Exec_cap6_01.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Capitulo_6/1/Exec_cap6_01.rb diff --git a/Capitulo_6/1/Exec_cap6_01.rb b/Capitulo_6/1/Exec_cap6_01.rb new file mode 100644 index 0000000..78689e4 --- /dev/null +++ b/Capitulo_6/1/Exec_cap6_01.rb @@ -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 \ No newline at end of file