Computer Science, asked by archiro, 5 months ago


6. Predict the output for the following :


a) int x=5,y=4,z;

z=x*y++ + ++x/y;

System.out.println(z);

b) int a=5,b=10;

a=a+ b++ + - - b +b;

What will result a and b after execution?​

Answers

Answered by bk3224017
1

Answer:

a= a+b,b=-a+b is the answer of this question

Explanation:

by solving

Answered by atrs7391
3

Answer:

6.a. 21

  b. a = 37

      b = 11

Mate, I realized that we are from the same school.

Similar questions