Armstrong Number

An Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits.

Example : 1. 153 is an Armstrong number. (1^3) + (5^3) + (3^3)= 153.

Note: by default all single digit numbers are Armstrong numbers.

example, test 6. One digit. 6^1 = 6


Leave a Reply

Your email address will not be published. Required fields are marked *