Write a program which takes a string as input and displays stars (*) equal to number of letters in each word, for each word in each line.
Eg: If input is "This is Life" output should be as below:
****
**
****
Please Answer
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
sugitha sugiRank #8,523 · 220 reputationPosted Apr 19, 2018, 2:30 AM EDT