Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func multiply(operator1 a: Int, operator2 b: Int) -> Int {
- return a * b
- }
- let product = multiply(operator1: 6, operator2: 2) // 12
- func divide(#dividend: Int, #divisor: Int) -> Int {
- return dividend / divisor
- }
- let quotient = divide(dividend: 6, divisor: 2) // 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement