Computer Science, asked by 4105ssimphal, 16 days ago

pls send me the ans of this I can't answer it​

Attachments:

Answers

Answered by samarthkrv
0

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:

Similar questions