Update math/factorial.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
realstealthninja
2023-06-19 09:41:53 +05:30
committed by GitHub
parent 6dd05060d5
commit 3836735dfa

View File

@@ -1,7 +1,7 @@
/**
* @file
* @brief Find the [factorial](https://en.wikipedia.org/wiki/Factorial) of a given number
* @description calculates factorial via recursion
* @details Calculate factorial via recursion
* \f[n! = n\times(n-1)\times(n-2)\times(n-3)\times\ldots\times3\times2\times1
* = n\times(n-1)!\f]
* for example: