Question PSC-COND-0049
MediumWhat is the output of this pseudocode?
Integer x = 8, c = 0
if (x > 5) c = c + 1
if (x > 6) c = c + 1
if (x > 9) c = c + 1
if (x mod 4 == 0) c = c + 5
Print c
- A.
3
- B.
7
- C.
Sign up free to see the answer and a step-by-step explanation.