I'm currently teaching myself C from a book and as one of the exercises it asks to write a program that counts the number of letters, digits, and common punctuation symbols entered by the user.

I have no idea how to do this and have been wrestling with this idea for a few hours now

not asking anyone to write the entire program for me, just a few pointers in the right direction to get me started would be great

supposed to use switch statement