//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
#include <iostream>
const size_t& fact(const size_t& value)
{
if (value == 0 || value == 1) return 1U;
return value * fact(value - 1);
}
int main()
for (size_t i = 0; i < 9; ++i)
std::cout << fact(i) << " ";
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
#include <iostream>
const size_t& fact(const size_t& value)
{
if (value == 0 || value == 1) return 1U;
return value * fact(value - 1);
}
int main()
{
for (size_t i = 0; i < 9; ++i)
std::cout << fact(i) << " ";
}