- 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

9th Aug 2022, 9:04 AM
MD SAIF ZEESHAN
MD SAIF ZEESHAN - avatar
2 Answers
0
Can you add your code? Remember to read the increment and decrement section closely. Pay attention to the difference between pre and post.
9th Aug 2022, 9:41 AM
Ausgrindtube
Ausgrindtube - avatar
0
You have to fix the Program..... attach code file to...!!
10th Aug 2022, 5:07 AM
PARVEZ ALAM
PARVEZ ALAM - avatar