Question PSC-COND-0053
MediumWhat does the following pseudocode print?
Integer amt = 2500, disc
if (amt > 5000)
disc = amt * 20 / 100
else if (amt > 2000)
disc = amt * 10 / 100
else
disc = 0
end if
Print amt - disc
- A.
250
- B.
2250
- C.
Sign up free to see the answer and a step-by-step explanation.