#include #include using namespace std; int factorial(int x); int main() { int inputnum; cout << "Input a number from 1 to 10" << endl; cin >> inputnum; cout << endl; cout << "factorial(" << inputnum << ") = " << factorial(inputnum) << endl; return 0; } int factorial(int x) { /* Write your code to compute the factorial here , Don't add anything anywhere else except for this function Example: factorial(4) = 4 * 3 * 2 * 1 = 24 factorial(5) = 5 * 4 * 3 * 2 * 1 = 120 factorial(5) = 5 * 24 = 120 */ }