factorial-of-numbers

1.0.1-alpha • Public • Published

Factorial

Factorial of a whole number 'n' is defined as the product of that number with every whole number till 1.

Formula for n Factorial:

n! = n * (n - 1) * (n - 2) * ...... * 1
  • 1! = 1
  • 2! = 2 * 1 = 2
  • 3! = 3 * 2 * 1 = 6
  • 4! = 4 * 3 * 2 * 1 = 24

Installation

npm i standart-factorial

Readme

Keywords

none

Package Sidebar

Install

npm i factorial-of-numbers

Weekly Downloads

1

Version

1.0.1-alpha

License

MIT

Unpacked Size

1.57 kB

Total Files

5

Last publish

Collaborators

  • mpasichnyk