PRO192_-_SU_2025_-_QUIZ2_3925.webp
Hữu Vinh

PRO192_-_SU_2025_-_QUIZ2_3925.webp

Question 1
What will be the output of the following code?
Answer saved
Flag
question
public class Main {
public static void main(String[] args) {
=
int] arr {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
arr[i] = arr[i] *2;
}
for(int i: arr) {
System.out.print(i + " ");
}
}
}
A. 12345
B. 24 6 8 10 12
C. 24 6 8 10
D. 149 16 25
Clear my choice
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Hữu Vinh
Ngày thêm
Lượt xem
670
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom