What is an Armstrong Number?
An Armstrong number is a n -digit number that is equal to the sum of each of its digits taken to the n th power.
Example of an Armstrong Number when number of digits=3
For example, 153 is an armstrong number because 153 = 1³ + 5³ + 3³.
1³ = 1
5³ = 125
3³ = 27
and 1+125+27 is equal to 153, therefore, 153 is an Armstrong Number.
C Source Code for Find or Check Armstrong Number (3 digits)
Please enter a three digit number=153
153 is an armstrong number
Please enter a three digit number=371
371 is an armstrong number
Please enter a three digit number=515
515 is not an not armstrong number
996 total views, 3 views today