Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to reverse a number in java

int rev= 0;
while(num > 9)
{
  rev= rev*10 + num%10;
  num/= 10;
}
 
PREVIOUS NEXT
Tagged: #reverse #number #java
ADD COMMENT
Topic
Name
7+9 =