#include <stdio.h>
int main()
{
int i,j,big=0,small=0,digital=0,blank=0,oth=0;
char text[3][80];
for(i=0;i<3;i++)
{
printf("Please input line %d:
",i+1);
gets(text[i]);
for(j=0;j<80&&text[i][j]!=' ';j++)
{
if(text[i][j]>='A'&&text[i][j]<='Z')
big++;
else if(text[i][j]>='a'&&text[i][j]<='z')
small++;
else if(text[i][j]>='0'&&text[i][j]<='9')
digital++;
else if(text[i][j]==' ')
blank++;
else
oth++;
}
}
printf("大写:%d
",big);
printf("小写:%d
",small);
printf("数字:%d
",digital);
printf("空格:%d
",blank);
printf("其他:%d
",oth);
return 0;
}