Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char Nume[25], Prenume[25], Rez[50], Aux[25];
- int main ()
- {
- int n, i;
- cin>>Nume>>Prenume;
- n=strlen(Prenume);
- for (i=0; i<n; i++)
- {
- if (strchr("aeiouAEIOU", Prenume[i])==0)
- {
- strncat(Rez, Prenume+i, 1);
- }
- }
- strcat(Rez, " ");
- strcat(Rez, Nume);
- cout<<Rez;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement