WSQ09

Captura de pantalla 2016-04-07 a las 14.17.07
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.

CC BY-SA 4.0 WSQ09 by antonioangelm is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.