fork download
  1. puts("Input id")
  2. input_id = gets.chomp()
  3. members = ['egoing', 'k8805', 'leezche']
  4. for member in members do
  5. if member == input_id
  6. puts('Hello!, '+member)
  7. exit
  8. end
  9. end
  10. puts('Who are you?')
  11.  
Success #stdin #stdout 0.01s 7452KB
stdin
egoing
stdout
Input id
Hello!, egoing