0
Answer this question
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--); } }
5 odpowiedzi
+ 2
What is the question? You didn't mention it.
+ 1
Read the task description carefully: It is about increment and decrement. Re-read the lesson again and pay attention the the difference between pre- and post-increment.
Then look at the given code. The 2 lines that you are supposed to fix are marked by the comment.
0
Lisa java 7.2 practical
0
Lisa you are genius
- 1
Java