Check if a number with even number of digits is palindrome or not | C ++ program to find number is palindrome or not without using any extra space ; Function to check if the number is palindrome ; if divisible by 11 then true ; if not divisible by 11 ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; bool isPalindrome ( int n ) { if ( n % 11 == 0 ) { return true ; } return false ; } int main ( ) { isPalindrome ( 123321 ) ? cout << " Palindrome " : cout << " Not ▁ Palindrome " ; return 0 ; }