Question: The integer variables m and n are assigned the values 3 and 8, respectively, during the execution of a program (written in pseudocode). Each of
(a) if n - m = 5 then n : = n - 2
(b) if ((2 * m = n) and (⌊n/4⌋ = 1)) then
n : = 4 * m - 3
(c) if ((n < 8) or (⌊m/2⌋ = 2)) then n : = 2 * m
else m : = 2 * n
(d) if ((m < 20) and (⌊n/6⌋ = 1)) then
m : = m - n - 5
(e) if ((n = 2 * m) or (⌊n/2⌋ = 5)) then
m : = m + 2
Step by Step Solution
3.52 Rating (165 Votes )
There are 3 Steps involved in it
a m 3 n 6 b m ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
954-M-L-A-L-S (7322).docx
120 KBs Word File
