Question PSC-COND-0060
MediumWhat will be printed by the following pseudocode?
Integer n = 25
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.
fizzbuzz
- B.
nonebuzz
- C.
Sign up free to see the answer and a step-by-step explanation.