this is what it should look like, a while loop that repeatedly reads goals,assists, stops when a negative is entered. at the end it calcuates sum, average. donot know how to calcuate sum or average if i dont know how many times the user will enter.
Enter a number of goals: 0
Enter a number of assists: 0
Enter a number of goals: 1
Enter a number of assists: 0
Enter a number of goals: 2
Enter a number of assists: 1
Enter a number of goals: 0
Enter a number of assists: 3
Enter a number of goals: 4
Enter a number of assists: 1
Enter a number of goals: 0
Enter a number of assists: 0
Enter a number of goals: 2
Enter a number of assists: -3
Total Goals: 7
Total Assists: 5
Average Goals: 1.16667
Average Assists: 0.833333
Yes, there was a hat trick!