reverse number

class reverse
{ static int n,val,r;
public static void main(String args[])
{
n=Integer.parseInt(args[0]);

while(n!=0)
{
r=(n % 10);
val=10*r+r;

}
System.out.println(val);

}

}

No comments:

Post a Comment

Template Design by faris vio