I'm late turning in the assignment. Oh well, I'm not going to submit it until its right
My output comes out as:
Visitor scores are 18 19 22 21 22 23 25 17
I'm want it to be
Visitors scores are 18 19 22 21
Home scores are 22 23 25 17
I did cout<<"Visitor scores are"<<endl;
but I can't find how to do it the way I want to do it.
int finalScore (int teamscores[][COLS],string teams[])
{
int sum = 0;
cout<<"Visitor scores are ";
for (int i=0; i<ROWS; i++)
{
sum = 0 ;
for (int j=0;j<COLS; j++)
{
sum = sum+teamscores[i][j];
cout << teamscores[i][j] << " ";
}
}