#include<stdio.h>
int main()
{
char ch;
int letter=0,digit=0,other=0;
while(scanf("%c",&ch),ch!='\n')
{
if(ch>='0'&&ch<='9')
letter++;
else if(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z')
digit++;
else other++;
}
printf("%d\n",&letter);
printf("%d\n",&digit);
printf("%d\n",&other);
return 0;
}
郑轻oj 66
最新推荐文章于 2024-09-28 15:38:29 发布