>cout << product;
Replace that with this:
cout << product << '\n';
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Move the print outside of your loop so that you don't print intermediate values:
for (count = 1; count <= user_number; count++)
{
product = count * product;
}
cout << product <<endl;
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401