2824 - ICDF - Advanced Homework 2 Scoreboard

Time

2023/06/13 18:00:00 2023/06/30 23:59:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
13937 Function

13937 - Function   

Description

Define three functions:

  1. Reverse String: One line of input, one line of output, print the reversed string
  2. Count Vowels: One line of input, one line of output, print the number of vowels in the input
  3. 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

Sample Input  Download

Sample Output  Download

Tags




Discuss