I am new to C++ and I need help writing a code that show an array of 10 numbers and it need to generate 10 random numbers from 1 to 100. Below is what i have so far:
You have quite a bit of syntax errors. A colon isn't need at the end of your for statement, you have a pair of curly brackets that don't match and your definition of 'i' isn't used and then redefined.
What are you using to test your code? It should tell you what is wrong.