ICSE Class 10 Computer Applications
Question 11 of 26
Operators in Java — Question 11
Back to all questions 11
Question Question 11
If m=5, n=2; what will be the output of m and n after execution?
i. m -= n ii. n = m + m/n
i. m -= n
⇒ m = m - n
⇒ m = 5 - 2
⇒ m = 3
ii. n = m + m/n
⇒ n = 5 + 5/2
⇒ n = 5 + 2
⇒ n = 7