Skip to content

Instantly share code, notes, and snippets.

@jailsonsf
Created March 27, 2023 19:13
Show Gist options
  • Save jailsonsf/543b0c43a4dae0659e904ea914e9a8e8 to your computer and use it in GitHub Desktop.
Save jailsonsf/543b0c43a4dae0659e904ea914e9a8e8 to your computer and use it in GitHub Desktop.
Desafio DIO - Ruby
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