Swift Tutorial
Work in progress!
// code example to be replaced
func factorial(number: Int) -> Int {
if number == 0 {
return 1
} else {
return number * factorial(number - 1)
}
}
let factorialOf5 = factorial(number: 5)
print(factorialOf5) // 120
Read next:
Page Name