Created
March 27, 2023 19:13
-
-
Save jailsonsf/543b0c43a4dae0659e904ea914e9a8e8 to your computer and use it in GitHub Desktop.
Desafio DIO - Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('Digite seu nome: ') | |
name = gets.chomp | |
print('Digite seu sobrenome: ') | |
lastname = gets.chomp | |
print('Digite sua idade: ') | |
age = gets.chomp.to_i | |
puts "Olá #{name} #{lastname}! Seja bem vindo! Sua idade é #{age} anos." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment