Armstrong Numbers are numbers where the number itself is equal to the sum of its digits raised to the power of the number of its digits.
Example:
153 = 1^3 + 5^3 + 3^3
...so, 153 is Armstrong Number.142 != 1^3 + 4^3 + 2^3
...so, 142 is not an Armstrong Number.
Can somebody help me in writing codes for all 3 digits Armstrong number in R?