#include<stdio.h>int main(){ int i,a=0,b=0,c=0,d=0,e,f;char s1[i]; scanf("%s",&s1[i]);gets(s1);for(i=0;s1[i]!='/0';i++){if('A'<=s1[i]&&s1[i]<='Z'||'a'<=s1[i]&&s1[i]<='z'){a=a++;}if('0'<=s1[i]<='9'){b=b++;}if(s1[i]==' '){c=c++;}}printf("%d %d %d",a,b,c); }
1 回答
- 1 回答
- 0 关注
- 1290 浏览
添加回答
举报
0/150
提交
取消