Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- char s[21], cs[21];
- cin >> s;
- int n = strlen(s);
- char voc[] = "aeiou";
- for (int i = 0; voc[i]; i++)
- {
- strcpy(cs, s);
- for (int j = 0; cs[j]; j++)
- if (voc[i] == cs[j])
- {
- strcpy(cs + j, cs + j + 1);
- j--;
- }
- if (n != strlen(cs))
- cout << cs << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement