Q36.webp
Đ

Q36.webp

Kizspy | Question: 36
(Choose 1 answer)
FJOVERFLOW.COM
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
Đức Thành1
Ngày thêm
Lượt xem
1,487
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom