Posts

Showing posts with the label PALINDROME NUMBER

PALINDROME NUMBER

  ************************************************************************  W.A.P TO CHECK GIVEN NUMBER IS PALINDROME NUMBER OR NOT ************************************************************************  JAVA Program import java.util.Scanner; class demo {     public static void main(String[] args) {         Scanner sc=new Scanner(System.in);         System.out.println("Enter the Number: " );         int n= sc.nextInt();         // System.out.println("\nEntered number is: "+n);         int temp=0,x;         int n2= n;         while (n>0){             x=n%10;             n=n/10;     ...