Write a java program to reverse a number using for loop and while loop

Published --