You are using the same numbers
array at each of the 10 iterations. By the time the first iteration is over, the array already has every digit from 1 to 10 so the if condition will evaluate to false and nothing will be added to it.
So you need to create a new numbers
array for each of the 10 iterations, or remove its contents after printing it.