2024-05-25 00:13:28
#include<stdio.h>
int main()
{
char c;
int letter=0,space=0,num=0,other=0;
while((c=getchar())!='\n')
if(c>='A'&&c<='Z'||c>='a'&&c<='z')letter++;
else if(c>='0'&&c<='9')num++;
else if(c==' ')space++;
else other++;
printf("letter=%d num=%d space=%d other=%d\n",letter,num,space,other);
return 0;
}