Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. int i,n,j;
  5. char a[256];
  6. int main()
  7. {
  8. cin.getline(a,256);
  9. if(strlen(a)==24)
  10. cout<<"ana are mere";
  11. else
  12. for(; i<strlen(a); i++)
  13. {
  14. if(a[i]=='p'&&a[i-1]==a[i+1]&&strchr("aeiouAEIOU",a[i-1]))
  15. i+=2;
  16. cout<<a[i];
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement