Answer to Question #22372 in C++ for emmanuel

Question #22372
program to find the average score of 20 students offering 5 courses.
1
Expert's answer
2013-01-21T11:36:37-0500
#include<iostream>
using namespace std;
&
int main (){
int a[20],c,q=0;
float s;
cout<<"enter the course :";
cin>>c;
for (int i=0;i<20;i++){
cout<<i+1<<" enter score"<<endl;
cin>>a[i];
q+=a[i];
} &
s=q/20;
cout<<"the average score : "<<s<<endl;
&
system("PAUSE"); &
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS