Jenis pengembalian fungsi Swift
// function definition
func findSquare (num: Int) -> Int {
var result = num * num
return result
}
// function call
var square = findSquare(num: 3)
print("Square:",square)
SAMER SAEID