What is the code for following output ? In description I write output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the code for following output ? In description I write output.

Enter a string:hello h* e* l** o*

5th Apr 2019, 5:46 AM
K. Tejaswini
K. Tejaswini - avatar
2 Answers
+ 4
Why don't you give it a try by yourself first ?? Follow the community guidelines. https://www.sololearn.com/discuss/1316935/?ref=app
5th Apr 2019, 6:07 AM
Arushi Singhania
Arushi Singhania - avatar
+ 2
Based on the output, you need to check how many times each character occurs in the string and print asterisks based on the number of occurences of each character.
5th Apr 2019, 6:12 AM
Lambda_Driver
Lambda_Driver - avatar