Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- int gl[256], j;
- int c;
- char gls[]="aeiouy";
- memset(gl,0,256*sizeof(int));
- while ((c=getc(stdin))!=EOF)
- {
- if (c==' ')
- memset(gl,0,256*sizeof(int));
- if (c=='\n') break;
- for(j=0; j<6; j++)
- {
- if(c==(int)gls[j])
- gl[c]++;
- if (gl[c]>1) { printf("YES"); return 0;}
- }
- }
- printf("NO");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement