1/10: This code should return true if someone scores a total of 500 points or more in their exams.
Add up each score in the total
variable.
if total >= 500 {
return false
return true
}
func isPassingGrade(for scores: [Int]) -> Bool {
} else {
for score in scores {
}
var total = 0
total += score
}
Link copied to your pasteboard.