Skip to main content

Reading my life

WSQ09 - Factorial

1 min read

Hello everybody!

In this time, we wrote a code to calculate de factorial of a number. The funny thing is that I wrote a SUPER-ULTRA-COMPLICATED-CODE, then I learn to do this simply.

Here are the initial code that I wrote, the easy recursive way to do it and the easy loop way to do it 

Enjoy it.