Write a c++ program to find sum of 5 subject marks ??
Answers
Answered by
1
void Sum(){
int mark[5], i;
float sum=0;
cout<<"\nEnter marks obtained in Physics, Chemistry, Maths, CS, English :: \n";
for(i=0; i<5; i++)
{
cout<<"\nEnter mark[ "<<i+1<<" ] :: ";
cin>>mark[i];
sum=sum+mark[i];
}
cout<<"The sum is = ["sum"]";
}
Similar questions