Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- print "->"
- input = gets
- input = input.gsub( /([\w\s])([\w\s]?)/, '\1\2'.upcase)
- print input, "\n"
- # Output should be user's input, but in this format: "hElLo tHeRe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement