
please wait
|
|
|
|
I have to write a program that asks a user to enter the size of a dynamic array that stores a list of integers. 1. Then create the dynamic array and a loop that allows the user to enter an integer value for each array element. 2. Loop through the array, find the largest value in the array and output it, as well as its position in the array. 3. Then I have to delete the memory allocated to my dynamic array before exiting my program. I see no indication here that a while loop is needed. for loops should be all that is needed. |
|
|