Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ex10culegere
- #include <iostream>
- #include <cstring>
- using namespace std;
- int main()
- {
- char a[50],b[50];
- cin.get(a,49);
- cin.get();
- cin.get(b,49);
- cin.get();
- char *p, *aa, *bb;
- for(p=a; *p; p++)
- if(strchr("aeiou",*p))
- aa=p;
- for(p=b; *p; p++)
- if(strchr("aeiou",*p))
- bb=p;
- if(*aa==*bb)
- cout<<"Rimeaza";
- else
- cout<<"Nu rimeaza";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement