#include <stdio.h> int main() { char str[100]; gets(str); char *ptr=str; void fuction(char *); fuction(ptr); return 0; } void fuction(char *p) { int i=0,N=0,E1=0,O=0,E2=0; while(p[i]!='\0') { if('A'<=p[i]&&p[i]<='Z') E1++; else if('a'<=p[i]&&p[i]<='z') E2++; else if('0'<=p[i]&&p[i]<='9') N++; else O++; i++; } printf("%d\n",E1); printf("%d\n",E2); printf("%d\n",N); printf("%d\n",O); printf("%d",i); }