Prints an array from 1 up to the input number