Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Help!

Name: Anonymous 2011-04-03 19:21

using namespace std;

for (int k=0;k<N; k++)   //summation
    {
     sum=sum+y[k];
    }
y_ave= sum/N;
// Count elements greater than average
for (int k=0;k<N; k++)   //counting!
    {
     if (y[k] >y_ave)
        count++;
    }
cout<<“The sum of elements in the array”<<sum<<endl;
cout<< count<< “ values are greater than average value”<< y_ave<<endl;

Name: Anonymous 2011-04-03 23:54

gbt/prog/

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List