Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 258 Bytes

File metadata and controls

10 lines (8 loc) · 258 Bytes

A positive integer of n digits is called an Armstrong number of order n (order is number of digits)

if - abcd... = pow(a,n) + pow(b,n) + pow(c,n) + pow(d,n) + ....

Example - Input : 153 Output : Yes 153 is an Armstrong number. 111 + 555 + 333 = 153