Factorial

package
v0.0.0-...-988b5a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 0 Imported by: 0

README

Factorial Sequence

The factorial function is a mathematical formula represented by an exclamation mark "!". The factorial of a non-negative integer n is the p roduct of all positive integers less than or equal to n.

Here’s an example:

7! = 1 * 2 * 3 * 4 * 5 * 6 * 7 = 5.040

n n!
0 1
1 1
2 2
3 6
4 24
5 120
6 720
7 5 040
8 40 320
9 362 880
10 3 628 800

Implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factorial

func Factorial(num int) int

func FactorialRecursive

func FactorialRecursive(num int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL