Asked by SCCC
1 public class testOperators
2 {
3 public static void main(String[] args)
4 {
5 int x;
6 int y = 12
7 double z = 13.0;
8 x = 14
9 System.out.println(“x + y + z = “ + (x + y +z));
10 x += y;
11 y--;
12 z++;
13 z *= x;
14 System.out.println(“x + y + z = “ + (x + y + z));
15 }
16 }
Trace:
Line # X Y Z Output
5 ?
6 12
7 13.0
8 14
9 x + y + z = 39.0
10 26
11 11
12 14.0
13 364
2 {
3 public static void main(String[] args)
4 {
5 int x;
6 int y = 12
7 double z = 13.0;
8 x = 14
9 System.out.println(“x + y + z = “ + (x + y +z));
10 x += y;
11 y--;
12 z++;
13 z *= x;
14 System.out.println(“x + y + z = “ + (x + y + z));
15 }
16 }
Trace:
Line # X Y Z Output
5 ?
6 12
7 13.0
8 14
9 x + y + z = 39.0
10 26
11 11
12 14.0
13 364
Answers
Answered by
drwls
Are these the answers or the quetions?
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.