Q32.webp
vanhoa2005

Q32.webp

Question: 32
(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
vanhoa2005
Ngày thêm
Lượt xem
1,547
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom