n!

To do this WSQ I had to research what a factorial is and how it works, the page that I found useful is THIS ONE.

So the rule is:

n! = n × (n−1)!

Which just says “the factorial of any number is that number times the factorial of (1 smaller than that number)“.

The first attempt was a failure because every single one of the factorials gave me the number 1.

Captura de pantalla 2016-02-17 a las 2.42.19 p.m.

Then I found my mistake and here is the code:

Haga click para ver el pase de diapositivas.

The link of my code ☺

CC BY-SA 4.0 n! by fernandacano is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.