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