Computer Science, asked by manugarg1978, 6 months ago

WAP to input a sentence in uppercase and frame a word by adding first alphabet of each word.​

Answers

Answered by riyarajput61491
0

Answer:

String containing first letter of every word in a given string with spaces

A 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