#include<stdio.h>
int main() {
char line[150];
int i,v,c,ch,d,s,o;
o=v=c=ch=d=s=0;
printf("Enter A Sentence:\n\n\t");
gets(line);
for(i=0;line[i]!='\0';++i)
{
if(line[i]=='a'
|| line[i]=='e'
|| line[i]=='i'
|| line[i]=='o'
|| line[i]=='u'
|| line[i]=='A'
|| line[i]=='E'
|| line[i]=='I'
|| line[i]=='O'
|| line[i]=='U') ++v;
else if((line[i]>='a'&& line[i]<='z') || (line[i]>='A'&& line[i]<='Z')) ++c;
else if(line[i]>='0'&&c<='9') ++d;
else if (line[i]==' ') ++s;
}
printf("\n\nVowels: %d",v);
printf("\n\nConsonants: %d",c);
printf("\n\nDigits: %d",d);
printf("\n\nWhite Spaces: %d\n\n",s);
return 0;
}