**hi every body**

i need a lot of help in my assignment :

and of course i will show my work .

really biggeners

:confused:

+++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++

this is the task :

The factorial of a number n (written n!) is the number times the factorial of itself minus one; and

the factorial of 1 is, by definition, equal to 1. For example the factorial of 2 is 2*1! = 2*1, and

the factorial of 3 is 3*2!= 3*2*1=6, and so on. Implementing this definition using a computer

program is relatively slow, instead Sterling’s formula is used as an approximation of the factorial

for large values. Sterling’s formula is defined as follows:

( the formula is down in attachment )

The exp function in the <cmath> header file gives the value of e raised to a given power

Write a C++ program that asks the user to enter 5 large values of n ( > 10), calculates their factorial using sterling’s formula and displays the results in a tabular format.

The results should be displayed two times:

*1. The first time use scientific representation and default precision.*

2. The second time use a non-scientific representation and 2-decimal precision.

Please note that π=22.0/7.

==============================

i will write what i already did

and some question in what i did not understand

PLZ help

========================================================