Well that's a for loop. How do you want the user to choose the number? Do you want to prompt them? Do you want them to insert a negative number before you exit?
Let's start...
1. You need to define an array of 10.
2. While you are less than 10 and you are not at the user-defined end, keep reading.