☑Kizspy.me
(Choose 1 answer)
☐ A
Find the output of the following algorithm when n = 4.
procedure ABC(n, P: integer)
P: = 1;
for j = 1 to n
begin
if (j mod 2 = 0) then
P: = P+j
FUO.sh
sh the exam.
A. 13
end
else P: = P*j
B. 10
C. 24
D. None of the other choices is correct