Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <cstdio>
- using namespace std;
- int main()
- {
- char s[101][256];
- unsigned n, i, j;
- cin >> n;
- getchar();
- for (i = 0; i < n; i++)
- {
- gets(s[i]);
- }
- unsigned mini = 257, line;
- char vocale[] = "aeiouAEIOU";
- for (i = 0; i < n; i++)
- {
- unsigned l = strlen(s[i]), v = 0;
- for (j = 0; j < l; j++)
- if (strchr(vocale, s[i][j]))
- v++;
- if (mini >= v){
- mini = v;
- line = i;
- }
- }
- puts(s[line]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement