#include
int main()
{int i,zm=0,sz=0,qt=0;
char s[200];
gets(s);
for(i=0;s[i];i++){
if (s[i]>='A'&&s[i]<='Z'||s[i]>='a'&&s[i]<='z')zm++;
else if(s[i]>='0'&&s[i]<='9')sz++;
else qt++;
}
printf("字母:%d\n数字:%d\n其它:%d\n",zm,sz,qt);
return 0;
}
#include
int main()
{int i,zm=0,sz=0,qt=0;
char s[200];
gets(s);
for(i=0;s[i];i++){
if (s[i]>='A'&&s[i]<='Z'||s[i]>='a'&&s[i]<='z')zm++;
else if(s[i]>='0'&&s[i]<='9')sz++;
else qt++;
}
printf("字母:%d\n数字:%d\n其它:%d\n",zm,sz,qt);
return 0;
}