Question PSC-COND-0070
HardWhat will be printed by the following pseudocode?
Integer x = -7
Integer s
if (x > 0)
s = 1
else if (x < 0)
s = -1
else
s = 0
end if
Integer a = x * s
Print s, a
- A.
0 0
- B.
1 -7
- C.
Sign up free to see the answer and a step-by-step explanation.