I'm trying to find the mean of an array which the size and numbers are declared by user. I'm getting the error "invalid lvalue in assignment." Any help is appreciated.
1 2 3 4 5
int meanValue = 0; ////finding the mean
for (int y = 0; y < sizeOfNumberArray; y++){
((numberArray[y]) + (numberArray[++y]) + meanValue) = meanValue;
y++;
}