To Find the Palandrum Number using Java
import java.util.*;
public class PalandrumNum {
public static void main(String args[])
{
Scanner s=new Scanner(System.in);
int n,r,d=0,temp;
System.out.println("enter a number");
n=s.nextInt();
temp=n;
while(n!=0)
{
r=n%10;
d=d*10+r;
n=n/10;
}
if(temp==d)
System.out.println("palandrum");
else
System.out.println("not palandrum");
}
}