5 int c
, i
, nwhite
, nother
, ndigit
[10];
8 for(i
= 0; i
< 10; i
++)
10 while((c
= getchar()) != EOF
)
14 case '0': case '1': case '2': case '3': case '4':
15 case '5': case '6': case '7': case '8': case '9':
18 case ' ': case '\n': case '\t':
27 for(i
=0; i
< 10; i
++)
28 printf(" %d", ndigit
[i
]);
29 printf(", white space = %d, other = %d\n", nwhite
, nother
);