flash, you gotta use to the code tag around ur code otherwise it gives you cancer trying to read it.
basically for total if all the values are in the array, and you want to add them all, you do this
Code:
int array[12] myArray;
//initialize your array here
int sum = 0;
for(int i = 0; i < 12; i++)
{
sum += myArray[i];
}
cout<<"Total: "<<sum<<endl;
and for average just use
Code:
int array[12] myArray;
//initialize your array here
int sum = 0;
for(int i = 0; i < 12; i++)
{
sum += myArray[i];
}
float avg = sum/12.0;
cout<<"Average: "<<avg<<endl;
instead, or you can output both if you want both.