# Java Program to Reverse a Number

Here you will get java program to reverse a number with while loop and recursion. When we divide a number with 10 then the remainder is the last digit of number and quotient is the number without last digit. / operator is used find quotient and % operator is used to find remainder. We use this concept to reverse the number. Example: Initially n = 123, reverse = 0 Step 1: remainder = n % 10 = 123 % 10

Read more