Computer Science, asked by shantha64, 2 days ago

Find the output of the following [10X 1 = 10] i). a=8; b=6; a+ = a++ + ++b + ++a + b++; System.out.println(a);
ii). c=15; d=2; d+ = c++ * ++c + --d/2; System.out.println(d);
iii). a=1; b=2; c=3; b* = --a + a--/c++; System.out.println(b);
iv). u=8; z=6; z- = 15 + (++u/z--); System.out.println(z); v). x=6; y=3; y = x++ - ++y%3; System.out.println(y);
vi). m=6; n=4; n = m-- + ++n + m-- * n; System.out.println(n)
vii). a=5; b=9; a+ = a++ - ++b +a; System.out.println(a);
viii). w=5; x=9; y=0; z=1; y = ++y + ++y + w-- + --z; System.out.println(y);
ix). q=21; p=19; q = --q + ++p + 20; System.out.println(q);
x). m=18; n=0; p=16; p = m++ + ++m/++n+ ++p; System.out.println(p);​

Answers

Answered by DS99
0

Answer:

i  40

ii  257

iii  0

iv -10

v   5

vi  36

vii  6

viii  8

xi   60

x    55

Explanation:

Attachments:
Similar questions