but the second half to see if each value in the array is >= or < the average does not work...
can anyone tell me why?:

Code:

//for loop to find if each value is >= or < the array avg.
for(int k=0;k<SIZE;k++)
{
if(x[k]<avg)
cout<<setw(5)<<x[k]<<" is less than the average"<<endl;
else
cout<<setw(5)<<x[k]<<" is greater than or equal to the average"<<endl;
}
return 0;
}