Q28.webp
Yaga97

Q28.webp

  • Media owner Yaga97
  • Ngày thêm
Question: 28
(Choose 1 answer)
Find the output of the algorithm if input n = 7.
procedure tt(n: integer)
if n=1 then tt(n)=1
else tt(n)=tt(n-1)+n;
A. 35
B. 21
C. 40
D. 28
E. None of the other choices is correct

Thông tin

Category
MAD101
Thêm bởi
Yaga97
Ngày thêm
Lượt xem
2,694
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom