#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main()
{
int count = 0,i;
int digit[10];
int other=0;
char c;
for(i = 0;i<10;i++)
{
digit[i]=0;
}
while((c=getchar())!=EOF)
{
switch(c)
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
digit[c-'0']++;
break;
default:
other++;
break;
}
}
for(i=0;i<10;i++)
{
printf("%d",digit[i]);
}
printf("/n");
printf("其他字符个数 %d",other);
}