//This program calculates the total number of points a 
//soccer team has earned over a series of games. The user 
//enters a series of poin values, then -1 when finished.
#include <iostream>
using namespace std;

int main()
{
	int game = 1, 	//Game counter
		points,		//to hold a number of points
		total = 0;	//accumulator
	
	cout << "Enter the number of points your team has earned\n";
	cout << "so far in the season, then enter -1 when finished.\n\n";
	cout << "Enter the points for game " << game << ": ";
	cin >> points;
	
	while (points != -1)
	{
		total += points;
		game++;
		cout << "Enter the points for game " << game << ": ";
		cin >> points;
	}
	cout << "\nThe total points are " << total << endl;
	return 0;
}
