Move the return( 0 ); outside of the do/while loop. You are telling it to end the program and to send 0 to the operating system. Also please put code tags around your code.
Thank youu so much!! I was stuck on this for quite a while now.
i also need to to add up the scores. My teacher said it has to be like this.
Could you help me with that?
Welcome to Rock Paper Scissors!
Please enter r/p/s for your choice.
Player 1: r
Player 2: p
Player 2 wins, Paper covers Rock!
Player 1: 0 win(s), 1 loss(es)
Player 2: 1 win(s), 0 loss(es)
Play again? (y/n): y
create 4 variable then to keep track of wins/loses for each player.
Then at the end of your loop add one to winners wins and one to the losers loses. Then output the wins/loses each time before asking them to play again.
You weren't supposed to copy/paste you were supposed to fill in the blanks...
Look at your code. You have if statements telling which player wins.
Say for example the first if statement is player 1 wins because he has rock and they have scissor. Then you will add one to player one wins and one to player two losses.
*You will need to use curly braces so you can put more than one statement in each if statement.