In number theory, a narcissistic number or “Armstrong number” is a number where in a given number base b is a number that is the sum of its own digits each raised to the power of the number of digits. This definition is way more complicated than it actually is. Check out this example
The first image shows an Armstrong number.
The second image shows a number that is not an Armstrong number.
Here we add few code lines to see what actually happens.
Now you see how the Armstrong number works, and how you can write a C# Programm that checks if a given number is an Armstrong Number, or not.