// reverse the number
import java.io.*;
class ssvrev
{
public static void main(String args[]) throws IOException
{
int num;
BufferedReader ip = new BufferedReader(new InputStreamReader(System.in));
System.out.println("\n\t\t\tREVERSING THE GIVEN DIGIT");
System.out.print("\n\n\tNumber: ");
num = Integer.parseInt(ip.readLine());
System.out.print("\n\n\n\t\tReversed Didits: ");
do
{ int t = num % 10;
System.out.print(t);
num = num / 10;
} while(num>0);
System.out.println();
} // end of main function
} // end of classIn this program, easy to understand to calculate reverse the give number using Java Program
