Please enter your email address or userHandle.
Given a string containing multiple words, your task is to count the characters in each word and display them.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each testcase contains a string as input.
For each testcase, print the number of characters in each word of the string.
the quick brown fox
geeks for geeks
3 5 5 3
5 3 5
For testcase 1:
the has 3 characters
quick has 5 characters
brown has 5 characters
fox has 3 characters
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.