Computer Science, asked by Bhaavinjain, 10 months ago

In java,
when k=60 and a=5
then what is k%=++a + a-- *5-a;

and how
pls help

Answers

Answered by anishasa
1

Answer:

29

Explanation:

++a == preincrement the value of a will be incremented by 1

++a == 6

a-- == postdecrement the current value of a is assigned to --a then a is decremented.

a-- == 6

-a == It takes the a value from which we were assigned

a = 5

Answer:

k%=6+6*5-5

6+30-5

31

a %= b ---> a = a%b

k%=k%31

Modulus is the remainder

= 60%31

k = 29

Similar questions