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.
Then I found my mistake and here is the code:
Haga click para ver el pase de diapositivas.
The link of my code ☺
n! by fernandacano is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.