Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char s[255],cuv[100],*p,vocale[]="aeiouAEIou";
- int NR=0;
- gets(s);
- p=strtok(s," ");
- while(p!=NULL)
- {
- strcpy(cuv,p);
- if(strchr(vocale,cuv[0])!=NULL&&strchr(vocale,cuv[strlen(cuv)-1])!=NULL)
- NR++;
- p=strtok(NULL," ");
- }
- printf("%d",NR); return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement