Outside of your loop, create a variable for wins and one for losses. Within the loop, after an event happens which would tally a win or loss, just add one to the variable.



int wins = 0;
int...