Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input: th [thing, awesome, potato, example]
- Output: thing (Because it starts with "th")
- Input: ing [thing, potato]
- Output: thing (Because it ends with "ing")
- Input: tat [thing, potato]
- Output: potato (Because it contains "tat")
- Input: tat [tato, potato]
- Output: tato, potato (If there are 2 or more results matching, print all of them)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement