|
-
February 19th, 2009, 11:58 AM
#1
characters in a String Question
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|