Skip to content

Commit

Permalink
Merge pull request #1813 from piyush-sri/patch-1
Browse files Browse the repository at this point in the history
Create Palindrome.py
  • Loading branch information
fineanmol authored Oct 1, 2022
2 parents 5d94f40 + fddfa5b commit 24bdbe0
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
n=int(input("enter a number"))
def checkPalindrome(num):
copy=num
rem=0
sum=0
while(copy>0):
rem=copy%10
sum=sum*10+rem
copy=copy//10

if(n==sum):
print("Number is Palindromw")
else:
print("No. is Not Palindrome")


checkPalindrome(n)

0 comments on commit 24bdbe0

Please sign in to comment.