The integer variables m and n are assigned the values 3 and 8, respectively, during the execution
Question:
(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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Question Posted: