C++ DOUBT

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int mark[5], i, a,b,c,d,e;
float sum=0;
cout<<"Enter marks obtained in ENGLISH :";
cin>>a;
cout<<"Enter marks obtained in PHYSICS :";
cin>>b;
cout<<"Enter marks obtained in CHEMISTRY : ";
cin>>c;
cout<<"Enter marks obtained in MATHS : ";
cin>>d;
cout<<"Enter marks obtained in COMPUTER SCIENCE : ";
cin>>e;
i=a+b+c+d+e;
for(i=0;i<500;i++)
{
cin>>mark[i];
sum=sum+mark[i];
}
cout<<" TOTAL MARKS = "<<sum<<endl;
float avg=sum/5;
float perc;
perc=(sum/500)*100;
cout<<"Average Marks = "<<avg;
cout<<"\nPercentage = "<<perc<<"%";
getch();
}

please make this program CALCULATE THE TOTAL MARKS
closed account (48T7M4Gy)
http://www.cplusplus.com/forum/general/202943/2/
Topic archived. No new replies allowed.