CSD201_-_SU_2024_-_RE_2502.webp
night_owl1

CSD201_-_SU_2024_-_RE_2502.webp

}
(Choose 1 answer)
Consider the following function:
int fun(int a, int n)
{ if(n == 0) return(1);
int t =fun(a,n/2);
if(n%2==0)
return(t*t);
else
return(t*t*a);
What is the value of fun(3, 2)?
A. 6
B. 5
C. 9
D. 8

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2024_-_RE_2502.webp
File size
148.5 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom