Calculates the factorial of an integer number.

View versions (1)

Interface

#include <codecogs/maths/combinatorics/arithmetic/factorial.h>

using namespace Maths::Combinatorics::Arithmetic;

This function returns the factorial of an integer number:

f(x)=x!
(1)

Returns

the factorial of n
GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

n
Result