edutedu

din pasareasca in romana

Apr 2nd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char a[100], b[100]="";
  8. int i, n, j=0;
  9. cout<<"Introduceti sirul in limba pasareasca: ";
  10. cin.get(a,100);
  11. n=strlen(a);
  12. for(i=0; i<n; i++)
  13. if(strchr("aeiou",a[i])!=0)
  14. strcpy(a+i, a+i+2);
  15. cout<<a;
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment