Question PSC-COND-0061
HardWhat is the output of this pseudocode?
Integer a = 7, b = 3, c = 9, t
if (a > b) t = a; a = b; b = t end if
if (b > c) t = b; b = c; c = t end if
if (a > b) t = a; a = b; b = t end if
Print a, b, c
- A.
3 7 9
- B.
7 3 9
- C.
Sign up free to see the answer and a step-by-step explanation.