0

Guy who can help pls

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //taking initial score int initScore = scanner.nextInt(); int scoreTom = initScore; int scoreBob = initScore; System.out.println("Round 1 results:"); //fix System.out.println(scoreTom++); System.out.println(scoreBob--); } }

29th Mar 2022, 12:58 PM
MR KINGSHOW
MR KINGSHOW - avatar
1 Answer
+ 2
Look at lesson 7 again and note the difference between pre- and post-decrement/increment. You tried post, but you need pre. Please do not re-post the same question. https://www.sololearn.com/Discuss/3009092/?ref=app
29th Mar 2022, 1:01 PM
Lisa
Lisa - avatar