+ 10
Python program to check whether a given no is Armstrong or not
3 ответов
+ 4
There you go, just made it, an armstrong number checker:
https://code.sololearn.com/chOE80MWgV6i/?ref=app
+ 1
n=input("enter a number")
Sum=0
For i in n :
Sum+=int(i) **3
If sum==int(n) :
Print("it is armstrong number")
Else :
Print("not armstrong")
0
Is this a question?