How can I get to the same result but using the while operator instead? Also, printing which ones are even and which ones are odd
var arrayNumber: Array = [1,2,3,4,5,6,7,8,9,10]
for myInt: Int in arrayNumber {
if(myInt % 2 == 0) {
print("\(arrayNumber) is even number")
} else {
print("\(myInt) is odd number")
}
}