algorithms.tutorialhorizon.com

Find all the Armstrong numbers in the given range. | Algorithms

Objective: Given a range of integers, wrote a program to find all the Armstrong numbers in that range. What is Armstrong number: Determine the number of digits in the number. Call that n. Then take every digit in the number and raise it to the n power. Add all those together, and if your answer is the original number then it is an Armstrong number. Example: low =1000, high = 10000 Output: 1634, 8208, 9474 Low = 100, high = 1000 Output: 152, 370, 371, 407