Create an integer array and print values at even indices