Answers for "Write a java program to read a number, then use while loop to display its reverse."

0

how to reverse a number in java

int rev= 0;
while(num > 9)
{
  rev= rev*10 + num%10;
  num/= 10;
}
Posted by: Guest on December-07-2020

Code answers related to "Write a java program to read a number, then use while loop to display its reverse."

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language