Question PSC-COND-0010
MediumWhat will be the output of the following pseudocode?
Integer a = 3, b = 8, c = 5, mid
if ((a >= b AND a <= c) OR (a <= b AND a >= c))
mid = a
else if ((b >= a AND b <= c) OR (b <= a AND b >= c))
mid = b
else
mid = c
end if
Print mid
- A.
3
- B.
16
- C.
Sign up free to see the answer and a step-by-step explanation.