A general information:
1. take some indicators, int al=0, int nu=0, char ch="character by user",int count=0.
2. read each character until any space, comma or full stop is encountered.
3. if ,in between that, characters lie between alphabetic range of ascii table , increase al by one (al++),
4. if characters lie between numeric range of ascii table, increase nu by one (nu++),
5. and keep comparing each character with "ch" and if it matches , increase the count by one (count++).
This is a very good exercise.