Challenge
Your challenge is to make a function to find the sum of any two multiples below any max value (default 1000).
You should be able to call it like this:
sumOfMultiples(mult1: 3, mult2: 5) |
If you get it right, the answer of the above call should be 233,168.
Video Tutorial: Introduction to Swift Part 6: Functions is a post from: Ray Wenderlich
The post Video Tutorial: Introduction to Swift Part 6: Functions appeared first on Ray Wenderlich.