Keywordio interview question

write a program to check whether number is Armstrong or not

Interview Answer

Anonymous

30 July 2020

n=153 s=0 t=n while n!=0: a=n%10 d=pow(a,3) s=s+d n=n%10 if s==t: print("armstrong number") else: print("not an armstrong number")