So for the problem the user will enter as many double numbers as the want until they enter a negative number then it will stop the loop.
However I don't know how I would store all these numbers since I don't know how many the user will input and I can't use an array for this problem.