WSQ09 – Factorial

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.

https://github.com/juanpsantana/WSQs/blob/master/WSQ09.cpp

https://github.com/juanpsantana/WSQs/blob/master/WSQ09_recursive.cpp

https://github.com/juanpsantana/WSQs/blob/master/WSQ09_loop.cpp

CC BY 4.0 WSQ09 – Factorial by Juan Pablo Santana is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.