PRO192_-_FA_2024_-_FE_2969.webp
B

PRO192_-_FA_2024_-_FE_2969.webp

Kizspy | Question: 34
(Choose 1 answer)
What is the output following code snippet:
int sum=0;
for(int i=0;i<=10;i++){sum+= (i%2==0?i:-i);}System.out.println(sum);
A. 5
B. 2
C. The program will raise an exception.
D. 3

Thông tin

Category
PRO192
Thêm bởi
Bích Thủy
Ngày thêm
Lượt xem
4,619
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom