int isSymm(int x) { int m = 0,n = x; while(n>0) { m = m*10+n%10; n/=10; } if(m == x) return 1; return 0; }