Monday
July 27, 2015

Homework Help: Java

Posted by SCCC on Saturday, January 31, 2009 at 3:34pm.

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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Members