#include "stdio.h"//
void main(void){
char text[500],ch,*ch_p=text;
int vowel=0,consonant=0;
printf("Type a text...\nText:");
gets(text);
while(*ch_p){
if((ch=*ch_p++)<'A' || ch>'Z' && ch<'a' || ch>'z') continue;
if(ch=='a'||ch=='o'||ch=='i'||ch=='e'||ch=='u'||ch=='y'
||ch=='A'||ch=='O'||ch=='I'||ch=='E'||ch=='U'||ch=='Y') vowel++;
else consonant++;
}
printf("Vowel=%d Consonant=%d\n",vowel,consonant);
}