for n in range(0,10001):
sum=0
k=n
while n>0:
r=n%10
n=n//10
sum=sum+r*r*r
if(sum==k):
print(k,end=" ")
No comments:
Post a Comment