Factorial Help

Hey all, i'm having a bit of trouble with this - it's a program that should display the factorials of all numbers from 0 to k in the range 1-10. here's what i keep getting:
Enter a number to see factorials for: 10

I see! The code works beautifully, thank you.
However, I'm still a little confused as to how I should implement a range with these factorials - it's supposed to be a number only between one and ten. I've implemented an if statement after the first cout to make sure - but then it doesn't do anything if I enter a number that IS in the range.
Here's where the problem is:

>but then it doesn't do anything if I enter a number that IS in the range
I assume you mean that it doesn't do anything after printing the factorials. It doesn't do anything because it's waiting for input. And it's waiting for input because you forgot to add braces to the else clause: