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
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 ☝️☝️
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