1/10: This code should print "You're an adult."
Make sure you call the function only after it was defined.
check(age: 18)
print("You're a minor.")
func check(age: Int) {
if age >= 18 {
}
} else {
print("You're an adult.")
}
Link copied to your pasteboard.