parent
3e801b3ffc
commit
97008c58c3
@ -0,0 +1,22 @@
|
|||||||
|
#include<stdio.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
char a[10];
|
||||||
|
int i,f,b,c,d,e;
|
||||||
|
gets(a);
|
||||||
|
for(i=0;i<10;i++)
|
||||||
|
{
|
||||||
|
if(a[i]>='a'&&a[i]<='z')
|
||||||
|
f++;
|
||||||
|
else if(a[i]>='A'&&a[i]<='Z')
|
||||||
|
b++;
|
||||||
|
else if(a[i]>='0'&&a[i]<='9')
|
||||||
|
c++;
|
||||||
|
else if(a[i]==' ')
|
||||||
|
d++;
|
||||||
|
else
|
||||||
|
e++;
|
||||||
|
|
||||||
|
}
|
||||||
|
printf("%d %d %d %d %d",f,b,c,d,e);
|
||||||
|
}
|
Loading…
Reference in new issue