PRF192_-_SP_2023_-_RE_-_s_1_121.webp
I

PRF192_-_SP_2023_-_RE_-_s_1_121.webp

Multiple Choices
Answer (Choose 1 answer)
What is the output when the sample code below is executed?
int i, x=0;
for(i=1; i< 10; ++i)
{
if(i%2 == 1)
x = x+i;
else x--;
} printf("%d",x);
A. 20
B. 23
C. 1
D. 21
E. 19

Thông tin

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

Share this media

Back
Bên trên Bottom