The program outputs a minimum negative number when I need to output a positive minimum number. Negative number is ending data entry.

```
#include <iostream>
using namespace std;
int main() {
int totalNumber, max, min, score = 0, sum = 0;
float avrg;
 do {
     sum = sum + score;
     cout << "Enter score " << ++totalNumber <<": ";
     cin >> score;
         if (score < min) {
         min = score;
      }
      if (score > max){
         max = score;
      }
  }
  while(score >= 0);
  totalNumber -= 1;
  avrg = sum / totalNumber;
  cout << " You entered " << totalNumber << " scores" <<endl;
  cout << " Maximum score = " << max << endl;
  cout << " Minimum score = " << min << endl;
  cout << " Average score = " << avrg << endl;
return 0; 
}

```