What will be the output of the following? If x =5 i) 5 + x ii) 5*x --
Answers
Answered by
1
Answer:
(a) m -= n;
m = 3
n = 2
WORKING
m -= n
⇒ m = m - n
⇒ m = 5 - 2
⇒ m = 3
Value of n is unchanged so it is 2.
(b) n = m + m/n;
m = 5
n = 7
WORKING
n = m + m/n;
⇒ n = 5 + 5/2;
⇒ n = 5 + 2; [∵ 5/2 is integer division so result is 2]
⇒ n = 7
Value of m is unchanged so it is 5.
Explanation:
pls mark as brainliest pls
Answered by
0
Answer:
This could help you, hope u check it before you right✌✌
Attachments:
Similar questions