I want to enter numbers in an array by run time initialization and want to exit this loop by pressing enter key