This program should take input as follows:
enter number of players,i.e. "2"
enter number of games, i.e. "1"
game 1, player number: "1"
hits: 1
walks: 2
outs: 3
game 1, player number: "2"
hits: 3
walks: 2
outs: 1
game 1, player number: [enter "-1" when all players are accounted for]
2 3 2 1
2 3 2 1
the output should be:
1 1 2 3
2 3 2 1
What is wrong with the the program?