From Illuminations:
An Armstrong number is an n-digit number that is equal to the sum of the nth powers of its digits.
Armstrong Numbers - Illuminations
Write a method that determines whether or not a given number is an Armstrong number.
Armstrong Numbers: An Armstrong number is an n-digit number that is equal to the sum of the nth powers of its digits. Instructions Write a method that determines whether or not a given number is an Armstrong number.
Ruby
From Illuminations:
An Armstrong number is an n-digit number that is equal to the sum of the nth powers of its digits.
Armstrong Numbers - Illuminations
Write a method that determines whether or not a given number is an Armstrong number.