+ 1

Write a program to find all Armstrong number in the range of 0 and n.

An Armstrong number of n digits is an integer such that the sum of the nth power of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3^3 + 7^3 + 1^3 = 371 and 1634 is an Armstrong number as 1^4 + 6^4 + 3^ + 4^4 = 1634.

4th Sep 2017, 9:28 AM
Puneet Kumar
Puneet Kumar - avatar
3 Answers
4th Sep 2017, 10:10 AM
Elise
Elise - avatar
5th Sep 2017, 3:53 AM
André
André - avatar
4th Sep 2017, 10:26 AM
Sunera Avinash
Sunera Avinash - avatar