import java.util.*;
class Pal{
public static void main(String args[]){
Scanner nn=new Scanner(System.in);
int a=nn.nextInt();
int b=nn.nextInt();
int r,sum=0,temp;
int n;
n=a*b;
temp=n;
//System.out.print(n);
while(n>1)
{
r=n%10;
sum=(sum*10)+r;
n/=10;
}
System.out.println(sum+" palindrome number ");
}
}
class Pal{
public static void main(String args[]){
Scanner nn=new Scanner(System.in);
int a=nn.nextInt();
int b=nn.nextInt();
int r,sum=0,temp;
int n;
n=a*b;
temp=n;
//System.out.print(n);
while(n>1)
{
r=n%10;
sum=(sum*10)+r;
n/=10;
}
System.out.println(sum+" palindrome number ");
}
}
No comments:
Post a Comment