Question PSC-COND-0059
MediumWhat is the output of this pseudocode?
Integer n = 45
String s = "none"
if (n mod 3 == 0)
s = "fizz"
end if
if (n mod 5 == 0)
s = s + "buzz"
end if
Print s
- A.
buzz
- B.
fizz
- C.
Sign up free to see the answer and a step-by-step explanation.