ans pls I will give more pinsts if ans correct
Attachments:
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
int main() {
int nos = 7;
double total , average , percentage;
double grades[nos];
cout << "Enter marks of all 7 subjects- \n";
for(int i = 0; i < nos; i++){
cin >> grades[i];
total = total + grades[i];
}
average = total/7;
percentage = (total/700)*100;
cout << "Your total marks " << total << endl;
cout << "Your average in 7 subjects is " << average << endl;
cout << "Your percentage is " << percentage;
return 0;
}
Explanation:
Please mark as brainliest : (
Similar questions