- 2
Please Solve my code by Java programming
Tom and Bob are playing a board game, in which both players start with the same number of points. Tom won the first game and got 1 point, while Bob lost the game, and therefore lost 1 point. You are given a program that is intended to take the initial score and increase Tom's score by 1 and decrease Bob's score by 1. But something is wrong: the program outputs the scores without the change. Task Fix the program to result in the expected outputs. Sample Input 5 Sample Output Round 1 results: 6 4 Input 4 Sample Output Round 2 results: 5 3 Input 3 Sample Output 4 3
2 Respuestas
0
Can you add your code?
Remember to read the increment and decrement section closely. Pay attention to the difference between pre and post.
0
You have to fix the Program..... attach code file to...!!