Advertisement
catalyn

2 numere rimeaza

Feb 25th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {char s1[256],s2[256],*x,*z;
  7. int m,n;
  8. cin.getline(s1,256);
  9. cin.get(s2,256);
  10. m=strlen(s1)-2;
  11. x=s1+m;
  12. n=strlen(s2)-2;
  13. z=s2+n;
  14. if(strcmp(x,z)==0)
  15. cout<<"da";
  16. else
  17. cout<<"nu";
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement