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"); & }
Comments
Leave a comment