Computer Science, asked by vindyasp21, 5 months ago

the input consist of a string text representing the word of the text which are separated by whitespaces in the given string​

Answers

Answered by shivani4632
4

Answer:

String str is given which contains lowercase English letters and spaces. It may contain multiple spaces. Get the first letter of every word and return the result as a string. The result should not contain any space.

Examples:

Input : str = "geeks for geeks"

Output : gfg

Input : str = "happy coding"

Output : hc

Similar questions