PRF192_-_FA_2023_-_FE_1018.webp
T

PRF192_-_FA_2023_-_FE_1018.webp

(Choose 1 answer)
What is the output when the sample code below is executed?
int i=1;while(i<=10)if(i%2 == 1)printf("%d ",i++);elseprintf("%d ",i--);
A. 1
B. 1 3 5 7 9
C. 1 2 4 6 8 10
D. 1212... (infinite loop)
E. compiler error


Exit 22

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom