I want to iterate through an array of length 3 and input then output all of the items, which are integers. I have two codes, the first of which works without any issues while th