Recursion
Your task is to create the function called factorial which accepts an integer and returns the factorial of it.
factorial
<?prettify lang=cpp?>
#include <iostream> int main() { std::cout << factorial(5) << std::endl; }
120