1.

Algorithm to find the given number is armstrong or not in python​

Answer»

Generally, a NUMBER is said to be an ARMSTRONG number if an N -digit number equal to the sum of the nth powers of its DIGITS. For Example, 153 is an Armstrong number as its sum of cubes of each digit 13 + 53 + 33 = 153 WHEREAS 456 is not as its sum of cubes of each digit is not 456.



Discussion

No Comment Found