You'd need to input the 10 numbers into separate variables (typically an array of size 10), and then have two loops: One to read the values, and the second to operate on them.

However, there's an easier way to adjust the code to acheive the same result: Do the calculations as-you-go (no need for an array or a second loop), but just move the cout statement of the result outside the loop.