So I am doing a question in class and I can't seem to get the program to place the user input into the array and then display each of the results back to me at the end.
I want the user to input 10 numbers into the array and then once that is complete I want the program to display all the numbers that have been input for me. The question asks me to use a while loop to initialize the array
So, based on what you asked, you basically have these problems:
1) a while loop initialize array
2) a way to ask for the numbers
3) where and how to put the numbers
4) a way to check if we already got 10 numbers
5) how to print the numbers
Well you already have your array, which is ihighscores[].
Although you shouldn't do int ihighscores[9] = {1, 2, 3, 4, 5, 6, 7, 8, 9} since you're being asked to initialize it in a while loop ( you did it manually). And we need an array of size 10 for 10 inputs.
Which is int ihighscores[10]; <- That isn't filled with anything yet, so fire up the while loop and fill it up with 0's first. (this is initialization)