MAD101_-_FA_2022_-_RE_130.webp
Văn Nam1

MAD101_-_FA_2022_-_RE_130.webp

Multiple choices 15/50
Answer (Choose 1 answer)
A. None of them
B. Only (ii)
C. Both of them
D. Only (i)
Next
Which of the following algorithms are recursive?
procedure ABC(n, P: integers)P:=0;for j:=1 to n begin end if j mod 2 = 0 then P: = P - j;else P: = P + j;
(ii) procedure ABC(n, P: integer)P: = 1:for i:=1 to n begin if (j mode 2 = 0)P: = P+i else P: = P*j end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 41 47
43
44
45 46 47
48
49 50

Thông tin

Category
MAD101
Thêm bởi
Văn Nam1
Ngày thêm
Lượt xem
1,223
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom