Commit 3eb99389 authored by BONALA SAI MANIKANTA BHAAVAN's avatar BONALA SAI MANIKANTA BHAAVAN
Browse files

Upload New File

parent 8f9f015f
Pipeline #26126 passed with stage
in 13 seconds
a=int(input("enter number"))
n=b=a
s=0
count=0
while(n>0):
count=count+1
n=n//10
print("no of digits",count)
while(b>0):
d=b%10
s=s+(d**count)
b=b//10
if(s==a):
print("armstrong")
else:
print("not armstrong")
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment