Read/Input a full name having one or more parts(first name and/or middle name and/or last name)and then display the initials of the name.If the inputted name is ‘Mohandas Karamchand Gandhi’, the expected output is M.K.G..
Answers
Answered by
0
Answer:
Given a name, print the initials of a name(uppercase) with last name(with first alphabet in uppercase) written in full separated by dots.
Examples:
Input : geeks for geeks
Output : G.F.Geeks
Input : mohandas karamchand gandhi
Output : M.K.Gandhi
Similar questions