How would I fix this program so that the user is allowed to input any amount of numbers into the array? I'm absolutely confused.
Thanks in advance!
Code:#include <iostream> using namespace std; int main() { double numbers[num_elements] = {}; int i; for (i = 0; i < num_elements; i++) { cin >> numbers[i]; } system ("pause"); return 0; }