Factorial calculator

In this post we will learn what is a factorial number and make a program for calculate this. A factorial number is the product of all the previous numbers, an example is:

factorial of 3= 1x2x3=6

so a posible option to calculate this thru a program is whit a whileCaptura de pantalla 2017-03-29 a las 10.27.47 a.m.

and as you can see it workssss!

Captura de pantalla 2017-03-29 a las 10.27.34 a.m.

another program to use conditionals its a good practice, see you on the next post

 

2 comentarios en “Factorial calculator

Deja un comentario