Advertisement
STANAANDREY

10/15/2019 t

Oct 15th, 2019
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char s[21], cs[21];
  9.     cin >> s;
  10.     int n = strlen(s);
  11.     char voc[] = "aeiou";
  12.     for (int i = 0; voc[i]; i++)
  13.     {
  14.         strcpy(cs, s);
  15.         for (int j = 0; cs[j]; j++)
  16.             if (voc[i] == cs[j])
  17.             {
  18.                 strcpy(cs + j, cs + j + 1);
  19.                 j--;
  20.             }
  21.         if (n != strlen(cs))
  22.             cout << cs << endl;
  23.     }
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement