Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <ctype.h>
- int main() {
- char *p,s[256],voc[]="AEIOUaeiou";
- int ok,k=0;
- gets(s);
- // printf("%s",s);
- p=strtok(s," .");
- while(p!=NULL){
- for(int i=0;voc[i]!=NULL;i++){
- if(strchr(p,voc[i])!=NULL){
- k++;
- break;
- }
- }
- p=strtok(NULL," .");
- }
- printf("%d",k);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement