Swift - Functions
What will be the output of this Swift code?
func displayProduct(_ x: Int, _ y: Int) {
print(x * y)
}
displayProduct(5, 6)func displayProduct(_ x: Int, _ y: Int) {
print(x * y)
}
displayProduct(5, 6)_, so no labels are needed when calling.displayProduct(5, 6) multiplies 5 by 6, printing 30.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions