+ 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.
3 Respuestas
+ 1
My response in Ruby:
https://code.sololearn.com/ckicQrfd04H5/?ref=app