void main(){ for (int i=0; i<20; i++) { & cout<<"enter a number: "; & cin>>p; & if ((p>=0)&&(odd(p))) { s += p; ++N; } } cout<<"The average of all positive odd integers is "<<s/N<<"\n"; system("pause"); }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments