Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 100; i++) {
- std::cout << "Math's score' " << i+1 << ": ";
- std::cin >> scores[i];
- if(scores[i]<0)
- break;
- sum += scores[i];
- }
- student.set_scores(scores);
- float average_ball = sum / 5.0;
Add Comment
Please, Sign In to add comment