1/10: This code should print out all even numbers in an array.
Make sure you get the two print()
calls the right way around.
if number % 2 == 0 {
print(number)
var numbers = [1, 2, 3, 4, 5, 6]
}
for number in numbers {
print("Skipping odd number")
} else {
}
Link copied to your pasteboard.