WAP to input a sentence in uppercase and frame a word by adding first alphabet of each word.
Answers
Answered by
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
English,
4 months ago
Math,
4 months ago
English,
8 months ago
CBSE BOARD XII,
1 year ago
Sociology,
1 year ago