Advertisement
flaviucristi01

VARIANTA 96

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