MAD101_-_FA_2024_-_RE_3081.webp
Mỹ Linh1

MAD101_-_FA_2024_-_RE_3081.webp

Kizspy | Question: 29 (Choose 1 answer)
Which of the following algorithms are recursive?
(i)procedure ABC(n, P: integers)P:=0;for j:=1 to n begin if (j mod 20) then P: = P - j else P: = P + j;end
(ii) procedure ABC(n, P: integer)P: = 1:for j :=1 to n begin if (j mod 2 = 0) then P: = P+j else P: = P*j end
A. None of them
B. Only (i)
C. Only (ii)
D. Both of them
FUOVERFL

Thông tin

Category
MAD101
Thêm bởi
Mỹ Linh1
Ngày thêm
Lượt xem
3,435
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom