Blogger

Delete comment from: Java67

javin paul said...

Hello @Anonymous, when you divide the number you drop last digit from number and when you to module 10 i.. % 10 you get the last digit of the number.

For example, 123/10 = 12, last digit 3 is gone so number reduced from 3 to 2
123%10 = 3 means last digit.

This is the trick you need to reverse the number.

Oct 12, 2018, 8:15:17 PM


Posted to Palindrome: Java program to check number is palindrome or not? Example

Google apps
Main menu