AllAlgorithms / c

Implementation of All ▲lgorithms in C Programming Language
https://github.com/AllAlgorithms/c
MIT License
1.45k stars 519 forks source link

Create ArmstrongNumber.c #310

Open ghost opened 3 years ago

ghost commented 3 years ago

C Program to check whether a number is Armstrong number or not.

I am creating a pull request for...

prath06 commented 3 years ago

What is the difference between Armstrong Number and Narcissistic number. In which case, the exponent is the 'number_of_digits'?

ghost commented 3 years ago

In Narcissistic Numbers the exponent is equal to the number of digits. In Armstrong Number is described as the numbers which is equal to the sum of cubes of its digits. As far as I know both are same or maybe Armstrong is a particular case of Narcissistic Number.

On Thu 29 Oct, 2020, 7:47 PM Prath06, notifications@github.com wrote:

What is the difference between Armstrong Number and Narcissistic number. In which case, the exponent is the 'number_of_digits'?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AllAlgorithms/c/pull/310#issuecomment-718782862, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARPZQORC2MEWWMAPBYPQH4DSNF2QFANCNFSM4S5IU7DA .