mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
Merge pull request #565 from IlyaIskra/patch-1
Correct algorithm definition | ArmstrongNumber
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
* Author: dephraiim
|
* Author: dephraiim
|
||||||
* License: GPL-3.0 or later
|
* License: GPL-3.0 or later
|
||||||
*
|
*
|
||||||
* An Armstrong number is equal to the sum of the cubes of its digits.
|
* An Armstrong number is equal to the sum of its own digits each raised to the power of the number of digits.
|
||||||
* For example, 370 is an Armstrong number because 3*3*3 + 7*7*7 + 0*0*0 = 370.
|
* For example, 370 is an Armstrong number because 3*3*3 + 7*7*7 + 0*0*0 = 370.
|
||||||
* An Armstrong number is often called Narcissistic number.
|
* An Armstrong number is often called Narcissistic number.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user