上QQ阅读APP看书,第一时间看更新
19. Armstrong numbers
A number is an Armstrong number if raising its digits to the power of the number of digits and adding the results give the original number. For example, 371 is an Armstrong number because it has three digits and 33 + 73 + 13 = 371.
Write a program that finds Armstrong numbers between 1 and a specified maximum.