Exam14

Page 1

Answer : a.

x *= 2; b.

x += y - 2;

c.

sum += num;

d.

z *= x + 2;

e.

y /= x + 5;

///////////////////// a.

x = x + 5 – z; b.

y = y * (2 * x + 5 – z);

c.

w = w + 2 * z + 4;

d.

x = x – (z + y – t);

e.

sum = sum + num;

/////////////////////////// a

b

c

a = (b++) + 3;

9

7

und

c = 2 * a + (++b);

9

8

26

b = 2 * (++c) – (a++);

10

45

27

///////////////////////// a

b

c

sum

sum = a + b + c;

3

5

14.1

22

c /= a;

3

5

4.7

22

b += c – a;

3

6

4.7

22

a *= 2 * b + c;

50

6

4.7

22


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.