Hi !
I'm looking for the right code that takes a string and display the number of times each character displays in it. let's say.
string = "ttiokk"; the output should be :
t-----------2
i-----------1
o----------1
k----------2

I'm trying everything but it's not working. Your help is highly appreciated.
Thanks.