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,
3 months ago
World Languages,
3 months ago
Math,
3 months ago
English,
6 months ago
CBSE BOARD XII,
10 months ago
Sociology,
10 months ago