Code:`//Here is what I got so far`

#include <iostream>

using namespace std;

int main ()

{

int n, median;

double standarddeviation;

int num [31]={12, 13, 15, 16, 18, 19, 21, 34, 57, 32, 38, 213, 10, 14, 156, 172, 134, 143, 132, 139, 751, 30, 31, 81, 23, 41, 24, 51, 75, 91, 1234};

int sum= 0;

for (n=0; n<31; n++)

sum = sum+num [n];

double average=sum/31.0;

standarddeviation=(num[n]-average)*(num[n]-average);//I want to multiply every number by itself, subtract from the mean and son on but I can't seem to get it

cout<< sum<<endl;

cout<<average<<endl;

cout<<standarddeviation;

return 0;

}