Advertisement
angelavaida27

Var79_SII_Ex5

Nov 17th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char A[105], AUX[105];
  5. int main ()
  6. {
  7.     int l, i;
  8.     cin.getline(A, 105);
  9.     l=strlen(A);
  10.     for (i=0; i<l; i++)
  11.     {
  12.         if (strchr("aeiouAEIOU", A[i])!=0)
  13.         {
  14.             strcpy(AUX, A+i+1);
  15.             strcpy(A+i+1, "*");
  16.             strcat(A, AUX);
  17.         }
  18.     }
  19.     cout<<A;
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement