.
bool IsPal(int n) { int x=n, m=0, c; do { c=n%10; m=m*10+c; n=n/10; }while (n!=0); if(m==x) {return true;} else {return false;} }