SHARE
TWEET

10/15/2019 t

STANAANDREY Oct 15th, 2019 (edited) 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top