Computer Science, asked by sharagrace57, 1 day ago

998 m/s. 22. If x = 20 and y = 10 then determine the result of following statements : (i) x += y (ii) x = y (iii) x %= y (iv) * - = b (v) *= y (vi) x/= y 23. What will be the result of following eynressions ?​

Answers

Answered by ItzMeSam35
1

Question:

int x = 20 ;

int y = 10 ;

(i) x += y

Output : 30

(ii) x = y

Output : 10

(iii) x %= y

Output : 0

(iv) x -= y

Output : -10

(v) x *= y

Output : -100

(vi) x /= y

Output : -10

(Note : These outputs are computer generated)

Similar questions