c icon indicating copy to clipboard operation
c copied to clipboard

Create ArmstrongNumber.c

Open ghost opened this issue 5 years ago • 2 comments

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

I am creating a pull request for...

  • New algorithm
  • [ ] Update to an algorithm
  • [ ] Fix an error
  • [ ] Other - Describe below

ghost avatar Oct 24 '20 03:10 ghost

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

prath06 avatar Oct 29 '20 14:10 prath06

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, [email protected] 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 .

ghost avatar Nov 07 '20 01:11 ghost