Question PSC-LOOP-0045
MediumWhat does the following pseudocode print?
Integer n = 36, d, c = 0
for (each d from 1 to n)
if (n mod d == 0)
c = c + 1
end if
end for
Print c
- A.
36
- B.
8
- C.
Sign up free to see the answer and a step-by-step explanation.