Skip to content

jabastin-S/Day1-Python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

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])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published