Advertisement
Stefan08

varianta79_II_5

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