Advertisement
Guest User

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

a guest
Jan 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. char s[255],cuv[100],*p,vocale[]="aeiouAEIou";
  6. int NR=0;
  7. gets(s);
  8. p=strtok(s," ");
  9. while(p!=NULL)
  10. {
  11. strcpy(cuv,p);
  12. if(strchr(vocale,cuv[0])!=NULL&&strchr(vocale,cuv[strlen(cuv)-1])!=NULL)
  13. NR++;
  14. p=strtok(NULL," ");
  15. }
  16. printf("%d",NR); return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement