CSD201_-_FEB5_-_FA_2023_1291.webp
S

CSD201_-_FEB5_-_FA_2023_1291.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
fini
vato

Exit 48

Thông tin

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

Image metadata

Filename
CSD201_-_FEB5_-_FA_2023_1291.webp
File size
37.9 KB
Dimensions
1286px x 626px

Share this media

Back
Bên trên Bottom