prints all the numbers out from an array