n=int(input("enter n : "))
k=int(input("enter k : "))
for i in range(1,k):
rev=int(str(n)[::-1])
n=n+rev
if str(n)==str(n)[::-1]:
print([i,n])
break
else:
print([-1,-1])
-
Notifications
You must be signed in to change notification settings - Fork 0
jabastin-S/Day1-Python-
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published