PRF192_-_REB5_-_FA_2023_1327.webp
Naoya92

PRF192_-_REB5_-_FA_2023_1327.webp

  • Media owner Naoya92
  • Ngày thêm
(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 38

Thông tin

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

Image metadata

Filename
PRF192_-_REB5_-_FA_2023_1327.webp
File size
44.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom