Medium from an array - Help

How do I find the medium from an array?

I know I have to use a loop in some way but if you can help it will be much appreciated.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
using namespace std;
int main()
{

  int aArray[10]={1,2,3,4,5,6,7,8,9,10};












    return 0;
}
Topic archived. No new replies allowed.