# | Problem | Pass Rate (passed user / total user) |
---|---|---|
13937 | Function |
|
Description
Define three functions:
- Reverse String: One line of input, one line of output, print the reversed string
- Count Vowels: One line of input, one line of output, print the number of vowels in the input
- Combine Strings: Two line of input, one line of output, join the two inputs with a single space character and print it
The first line of input will be a number indicating which functions to be called, followed by one/two lines of input depending on the function being called. Perform the operation accordingly and print the output.
Input
Function number (1/2/3)
A string
Another string ONLY if function number is 3
Output
Output of the corresponding function executed on the function