Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<cstring>
- using namespace std;
- int main()
- {char s1[256],s2[256],*x,*z;
- int m,n;
- cin.getline(s1,256);
- cin.get(s2,256);
- m=strlen(s1)-2;
- x=s1+m;
- n=strlen(s2)-2;
- z=s2+n;
- if(strcmp(x,z)==0)
- cout<<"da";
- else
- cout<<"nu";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement