#include <stdio.h>
void main ()
{
int number=0,alf=0,other=0;
for(int i=0;i<10;i++)
{
int ar=getchar();
while (ar!=EOF)
{
if (ar<'9'&&ar>'0')
number++;
if (ar<'a'&&ar>'A')
alf++;
else
other++;
}
}
printf("number is %d:",number);
printf("alf is %d:",alf);
printf("other is %d:",other);
}
就是规定输入10个字符,计算出各个种类的个数!!1