Firstly, you are using deprecated headers.
It should be:
If your teacher/lecturer tells you otherwise he needs to
using namespace std;
be corrected. Why not be the one to correct him.
Secondly, you asked what is a loop?
A loop or "for loop" is vitally important in programming.
Let's say you wanted your program to count from 1 to 1000. Now you could do this:
This is obviously tedious? There is a much quicker way which involves using a for loop.
The way you write it is as follows:
The important bits.
for(int a=0; a<1000; a++)
Now the "int a=0;" is your starting value.
The "a<1000" is your end value.
And the 'a++' tells you how much to add to the previous value. It is similar to saying a= a+1.
So if you wanted to count up in tens you would write:
So how does this help you with your example?
for(int a=0; a<1000; a=a+10)
Well you can use the for loop as a pointer to the position in your array.
So how would you print out the contents of your array, from  to ?
for(int a=0; a<6; a++)
Ok now all you have to do is figure out what you need to change to print out the array backwards. What would be the start value, the end value and how would the
Have a go.
Once you've done that then read up on functions