i am supposed to create a simple program that prompts the user to enter an integer and then asks the user to enter that many values stored in an array. Then they are printed out...then the order is reversed and printed again. It's working fine my only problem is when i prompt the user to "Enter x values:" the number x never changes and i cant figure that out....considering if the user enters 5 at the beginning they are supposed to be prompted to input 5 values...here is my code...
What do you want to tell the user? How many values are left that they should enter? Obviously the value of number never changes since it is the length of your array. The value of count DOES change, though. Can you use this to calculate how many values are left?
Or do you want to tell them which number they are entering? What varialbe keeps track of this?
Or do you want to print something else? In other words, you need to explain what you want to print here in order for us to help you further. The above are just a few guesses with some clues about how to solve them.