Here is my coding: For some reason, at the very end, when I\'m trying to return winscounter and losscounter, it says unreachable statement but not for the tiescounter. I can
A function can only return one value. As soon as return(tiescounter); is executed the function exits. If you want to return all three values you will have to wrap them in a class.
By the way return(tiescounter); can be written as return tiescounter; Parenthesis around return values is not required. Both statements will have the same result.