Skip to content

Instantly share code, notes, and snippets.

@Leirda01
Created November 4, 2019 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leirda01/445132806c31669bba2c467f5a02b50c to your computer and use it in GitHub Desktop.
Save Leirda01/445132806c31669bba2c467f5a02b50c to your computer and use it in GitHub Desktop.
print "votre nom ?"
nom = gets.chomp
puts "Bonjour #{nom} !"
while true
puts "que veux tu faire ?"
command = gets.chomp
if command == "sors moi de là !"
break
end
puts "commande #{command} inconnue"
end
puts "au revoir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment