Java

Calculate reverse the give number using Java

 Calculate reverse the give number using Java
// 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(); 
} 
}
Senthilvelan Sambamoorthy

Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.