Armstrong number September 10, 2021 Get link Facebook X Pinterest Email Other Apps arms=0for i in range(100,1000): n=i while n>0: rem=n%10 arm=rem**3 arms=arms+arm n=n//10 if(arms==i): print(i,'is an armstrong number.') arms=0 Comments Python codes for my future self;)#welcome_backSeptember 10, 2021 at 6:29 AMAn armstrong number is number whose sum of the cube of it's digits is the number itselfReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
An armstrong number is number whose sum of the cube of it's digits is the number itself
ReplyDelete