Computer Science, asked by boy3121, 1 year ago

it's a computer question n=m+m/n if m= 5 and n=2 ; what will we the output of m and m after execution ?

Answers

Answered by shardul1925
4
Hello!!!

Your question:

If m= 5 and n=2 ; what will we the output of m and n after execution :
n=m+m/n

Process:

n= m+ m/n;
n= 5 + 5/2;
n= 5 +2 ;. //Since m and n are integers so output will also be integer.
n=7

You can also refer to the attachment ☝️☝️



Attachments:
Similar questions