OK, I know that this will seem a pitifully stupid question to anyone with any programming knowledge, but here goes anyway.
I'm new to C++ and I need to write a program to calculate factorials from an integer input. It's not so much a language difficulty with C++ as a logical problem.
Beginning with a factor of 1, I need a loop which multiplies the user input number by the factor, adds 1 to the factor, then multiplies the previous result by the new factor, continuing until the factor=(starting number - 1). Can anyone help?