PRF192_-_FA_2023_-_FE_1018.webp
T

PRF192_-_FA_2023_-_FE_1018.webp

(Choose 1 answer)
What is the output of the following code?
int sum(int n);
int main (){printf(" s = %d",sum(5));return(0);
} int sum(int n)
{int s,i;s = 0;for(i=1;i<=n;i++) s += i;return(s);}
A. 15
B. 14
C. 16
D. 13


Exit 39

Thông tin

Category
PRF192
Thêm bởi
Thùy Trinh
Ngày thêm
Lượt xem
3,117
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_FA_2023_-_FE_1018.webp
File size
44.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom