Swift Fun Algorithms #3: Factorials & Recursion
Today's algorithm will be the relatively simple function known as the Factorial. I'm sure most of you guys know how a factorial works already. Thus lets go ahead and implement a simple for loop style factorial function. We will then move on to implementing the code using recursion! Trust me its a lot of fun. Source code: http://letsbuildthatapp.com/2016/05/0... Follow me on Twitter: https://twitter.com/buildthatapp