Advertisement
a53

FPalindrom

a53
May 30th, 2021
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. bool Palindrom(nod* prim, nod* ultim)
  2. {
  3. nod *q=prim;
  4. nod *p=ultim;
  5. do
  6. {
  7. if(q->info!=p->info)
  8. return 0;
  9. q=q->urm;
  10. p=p->ant;
  11.  
  12. }while(q!=p);
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement