#include<stdio.h>
#include<stdlib.h>
int main()
{
char ch;
int a=0;
int num=0;
while((ch=getchar())!='*')
{
if ((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
{
a++;
}
else if(ch>='0'&&ch<='9')
{
num++;
}
}
printf("字母:%d\n",a);
printf("数字:%d\n",num);
return 0;
}
#include<stdlib.h>
int main()
{
char ch;
int a=0;
int num=0;
while((ch=getchar())!='*')
{
if ((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
{
a++;
}
else if(ch>='0'&&ch<='9')
{
num++;
}
}
printf("字母:%d\n",a);
printf("数字:%d\n",num);
return 0;
}