Check for reverse number reach digit must be odd
while ( sum && ( rem % 2 != 0 ) ) { rem = sum % 10 ; sum /= 10 ; } if ( sum == 0 ) cout << " Reversible ▁ Number " ; else cout << " Non - Reversible ▁ Number " ; }