Program to count characters in each word of given String

Let’s see program to count characters in each word of given String.

Output is :-

Characters in my— 2
Characters in name— 4
Characters in is— 2
Characters in anjali— 6

 

 

Top