I am having trouble understanding arrays. What I need help with is Create an array of type double that can hold up to 5 elements. Ask the user for 5 numbers. Display those numbers in the reverse order from which they were entered. Any help would be greatly appreciated.
What are you trying to do here? Initialise the array? If you wanted to initialise the array, which I would recommend that you do, you can do this: double numbers[5] = { 0 }; // zero initialise array
Display those numbers in the reverse order from which they were entered.
How would you display them in forward order?
Apply that logic to display them in reverse.
Hint: the last element is at index 4, second last is at 3, third last is at 2, etc...
I'm not quiet sure. I was following the example giving by my instructor. I am just trying to get the user to enter in 5 numbers. then use a for loop to display those 5 numbers entered in reverse.