Question PSC-LOOP-0060
MediumWhat does the following pseudocode print?
Integer n = 6, f = 1, s = 0, i
for (each i from 1 to n)
f = f * i
s = s + f
end for
Print s
- A.
873
- B.
33
- C.
Sign up free to see the answer and a step-by-step explanation.