Answer:
I'm not gonna use recursion for this program.
#include <iostream>
using namespace std;
int main()
{
int input,factorial=1;
cout<<"Enter a number to get it's factorial: ";
cin>>input;
for(int i=1;i<=input;i++)
{
factorial *=i;
}
cout<<"The factorial of the number you entered is: "<<factorial;
return 0;
}