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"); }
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment