Computer Science, asked by mondalananya8765, 1 year ago

Help me out with this computer java program as soon as possible....
(((PLZZ do it in a copy and post the photo... That will be easy to understand)))))

Attachments:

Answers

Answered by patilsania08
0

import java.util.*;

public class palindrome

{ public static void main(String args[])

{

 Scanner sc = new Scanner(System.in);

   int a,b,d,c;

   System.out.println("Enter the no.");

  a = sc.nextInt();

 int remainder=0,reverse=0,tem=a;

 do

  {  

  remainder = a%10;

   reverse = reverse*10 + remainder;

  a = a/10;  

 } while(a>0);  

         

 if(tem == reverse)

System.out.println("It is a palindrome");

 else

System.out.println("It is not a palindrome   ")

}

}



mondalananya8765: Where is the perfect number program?
Similar questions