Computer Science, asked by shreyamahajan, 1 year ago

if m=5andn=2 output the values of m and n after execution in(1)and (2) in the image show how you found it step-by-step plz

Attachments:

Answers

Answered by siddhartharao77
35
Given m = 5, n = 2.

(1) m-=n.

It is a short form for m = m - n

                                      = 5 - 2

                                      = 3.


Therefore the output is 3.



(2) Typical Question. The answer can be 4 or 7.

(a)   n = m + m/n

           = 3 + 3/2

           = 3 + 1

           = 4.


 (b) n = 5 + 5/2

         = 5 + 2

         = 7.


Hope this helps!

siddhartharao77: Ok. Will try and send it to u.
shreyamahajan: bracket Mai nahi hai
shreyamahajan: Yaa you try and then send thanks
siddhartharao77: refresh the page and check my answer
shreyamahajan: it is not visible
shreyamahajan: where have you send
siddhartharao77: I have edited the answer. U refresh the page.
siddhartharao77: That means close the page and open it again.
shreyamahajan: OK thanks
shreyamahajan: answer is correct and I have understood thanks
Answered by arpanapodder699
6

Answer:

Click here to get the answer

Attachments:
Similar questions