num=int(input())
      temp=num
      rev=0
      while(num>0):
          dig=num%10
          rev=rev*10+dig
          num=num//10
      if(temp==rev):
          print("The number is palindrome!")
      else:
          print("Not a palindrome!")
      

      Python language logonumPalindrome

      Programming
      maths

      to check if a given number is palindrome or not

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.