Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groupOne = Array.new
- groupTwo = Array.new
- puts "What is your last name?"
- input = STDIN.gets
- input.chop!
- if input ~= /*[a-1]/
- puts "You're in group 1."
- groupOne.push(input)
- else
- puts "You're in group 2."
- groupTwo.push(input)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement