func numberArray(num1: Double,num2: Double) -> ( Double,170)">Double) {
var add = 0.0,subtract = 0.0,multiply = 0.0
add = num1 + num2
subtract = num1 - num2
multiply = num1 * num2
if num2 == 0 {
divide = 0
} else {
divide = (num1 / num2)
}
return (add,subtract,multiply,divide)
}
numberArray(6,2)
原文链接:https://www.f2er.com/swift/326778.html