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.

Deja una respuesta

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s