Palindrome Number
Java Program to check whether the entered Number entered by user is Palindrome or Not. package whileLoops; import java.util.Scanner; public class PalindromeNumber { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.println("Enter a number:"); int n=input.nextInt(); int temp=n; int reversed=0; while(temp>0) { int lastDigit=temp%10; reversed=reversed*10+lastDigit; temp/=10; } if(reversed==n) System.out.println("Yes ,"+n+" is a Palindrome Number"); else System.out.println("No ,"+n+" is not a Palindrome Number"); } }