Quiz · Functions · lesson 3 of 9
Quiz — an argument label
What happens when this program is compiled and run?
func double(n: Int) -> Int {
n * 2
}
print(double(4), terminator: " ")
print(double(n: 3))What happens when this program is compiled and run?
func double(n: Int) -> Int {
n * 2
}
print(double(4), terminator: " ")
print(double(n: 3))