Advertisement
catalyn

palindrom 2

Feb 25th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char s1[256],s2[256];
  5. int main()
  6. {
  7. cin.getline(s1,256);
  8. strcmp(s2,s1);
  9. if(strcmp(strrev(s1),s2)==0)
  10. cout<<"este palindrom";
  11.  
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement