This program will give you the factorial value of a number that you will give.
It’s pretty easy. The function has only int x (which is the number that you’ll give) , and in the function you will have the int n (that will be the factorial number at the end) and int i (that is the actual number in the serie).
The loop will give you the product between n*i, and it will save the product in n, and i will be i + 1 every loop. While i is lower or equal than x.
It is pretty easy.
Here’s the Code in GitHub.