computer-science

Question
For any integer n > 0, n! is defined as the product n * n – 1 * n – 2 … * 2 * 1 0! is defined to be 1. It is sometimes useful to have a closed- form definition instead; for this purpose, an approximation can be used. R. W. Gosper proposed the following such approximation formula: Create a program that prompts the user to enter an integer n , uses Gosper’s formula to approximate n!, and then displays the result. The message display-ing the result should look something like this: 5! equals approximately 119.97003
Ready to try a high quality writing service? Get a discount here