From 60f0652b0a190b425baacaa129ebfbb9046932fe Mon Sep 17 00:00:00 2001 From: "Gabriel N. Oliveira" Date: Tue, 20 Aug 2019 22:02:18 -0300 Subject: [PATCH] #1 | Adiciona Resposta Gabriel Nunes --- Capitulo_4/2/Gabriel_Nunes2.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Capitulo_4/2/Gabriel_Nunes2.rb diff --git a/Capitulo_4/2/Gabriel_Nunes2.rb b/Capitulo_4/2/Gabriel_Nunes2.rb new file mode 100644 index 0000000..6e890a8 --- /dev/null +++ b/Capitulo_4/2/Gabriel_Nunes2.rb @@ -0,0 +1,5 @@ +puts 'qual numero favorito ?' +numero = gets.to_i +puts " esse numero é melhor #{numero + 1}" +melhor = numero + 1 +puts 'esse numero é melhor '+ melhor_to.s