Creating a program using arrays

i have to make a program that will use arrays

the problem is make a code that will ask the user to input a string value and display the number of times a character occurred. Assume that only small letters are entered.

For example:

Enter a string: abbcccdddd <ENTER>
a = 1
b = 2
c = 3
d = 4

something like that..i'm wondering if will i will use case switch or something to make the program?
Topic archived. No new replies allowed.