I have an array that i want to end when a -1 is put in. how do i get that to happen
#include <iostream>
using namespace std;
int main()
{
const int NUM_TEST = 100;
double score[NUM_TEST], test, total, average;
for (int test = 0; test <= NUM_TEST; test ++)
{
cout<< "Test " << ( test + 1) << " score is ";
cin>> score[test];
}
total += score[test];
average= total/(NUM_TEST);