12345678910bool isrever(int n){ int tmp = n, NEW = 0; while (tmp) { NEW = NEW * 10 + tmp % 10; tmp /= 10; } return NEW == n;}