Merge pull request #565 from IlyaIskra/patch-1

Correct algorithm definition  | ArmstrongNumber
This commit is contained in:
akhil marsonya
2021-02-09 21:58:56 +05:30
committed by GitHub

View File

@ -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.
* *