I'm writing a program that is supposed to count the number of hexadecimal digits (a, b, c, d, e, and f's) in a line of text. The output should look like this:
Enter a line of text:
number of a's:
number of b's:
number of c's:
number of d's:
number of e's:
number of f's:
--------------
total hex digits:
I'm getting this output, but it's not giving me the correct amount of times each letter occured. Help??