Welcome to my Swift Fundamentals Series.
Factorial (!):
1! = 1
4! = 4*3*2*1
5! = 5*4*3*2*1
In this video i will show how to find factorial of a number. I will show how to find factorial of a number in swift 4 using two different methods.
1) Loop
2) Recursion
Swift 4 Xcode 9.0
My mac version macOS Sierra