63 826
Assignments Done
99,3%
Successfully Done
In August 2018

Answer to Question #22372 in C++ for emmanuel

Question #22372
program to find the average score of 20 students offering 5 courses.
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions