September 5, 2011

C Program to Find whether Number is a Armstrong Number or NotAlso known as narcissistic numbers, Armstrong numbers are the sum of their own digits to the power of the number of digits. As that is a slightly brief wording, let me give an example:153 = 1³ + 5³ + 3³

Each digit is raised to the power three because 153 has three digits. They are totalled and we get the original number again! Notice that Armstrong numbers are base dependent, but we'll mainly be dealing with base 10 examplesSample Output: