mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-24 10:29:43 +00:00
11 lines
148 B
C++
11 lines
148 B
C++
constexpr int fact(int n)
|
|
{
|
|
return n <= 1 ? 1 : (n * fact(n - 1));
|
|
}
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
fact(4);
|
|
return 0;
|
|
}
|