Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. char string1[101];
  5. char string2[101];
  6. int i, c = 0, b = 0;
  7. gets(string1);
  8. gets(string2);
  9. for (i = 0; string1[i] != '\0'; i++) {
  10. if (string1[i] == 'a' || string1[i] == 'e' || string1[i] == 'i' || string1[i] == 'o' || string1[i] == 'u')
  11. c++;
  12. }
  13. for (i = 0; string2[i] != '\0'; i++) {
  14. if (string1[i] == 'a' || string1[i] == 'e' || string1[i] == 'i' || string1[i] == 'o' || string1[i] == 'u')
  15. b++;
  16. }
  17. if(c>b) puts(string1);
  18. else puts(string2);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement