Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. //ex10culegere
  2. #include <iostream>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. char a[50],b[50];
  10. cin.get(a,49);
  11. cin.get();
  12. cin.get(b,49);
  13. cin.get();
  14. char *p, *aa, *bb;
  15.  
  16. for(p=a; *p; p++)
  17. if(strchr("aeiou",*p))
  18. aa=p;
  19. for(p=b; *p; p++)
  20. if(strchr("aeiou",*p))
  21. bb=p;
  22.  
  23. if(*aa==*bb)
  24. cout<<"Rimeaza";
  25. else
  26. cout<<"Nu rimeaza";
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement