C语言问题,我想请教一下各位,
从键盘读入一串字符,以 '!' 结束,分别统计其中数字0,1,2... 9出现的次数。
输入:1902d76k5910!
输出:The character 0 appears 2 times
The character 1 appears 2 times
The character 2 appears 1 times
The character 3 appears 0 times
The character 4 appears 0 times
The character 5 appears 1 times
The character 6 appears 1 times
The character 7 appears 1 times
The character 8 appears 0 times
The character 9 appears 2 times