Chọn vòng lặp đúng: while (int i < 7) { i++; System.out.println(“i is ” + i); }   int i = 3; while (i) { System.out.println(“i is ” + i); }   int j = 0; for (int k = 0; j + k != 10; j++, k++) { System.out.println(“j is ” + j + ” k is ” + k); }   int j = 0; do { System.out.println(“j is ” + j++); if (j == 3) { continue loop; } } while ( j < 10 );  

Chọn vòng lặp đúng:

while (int i < 7) {

i++;

System.out.println(“i is ” + i);

}

 

int i = 3;

while (i) {

System.out.println(“i is ” + i);

}

 

int j = 0;

for (int k = 0; j + k != 10; j++, k++) {

System.out.println(“j is ” + j + ” k is ” + k);

}

 

int j = 0;

do {

System.out.println(“j is ” + j++);

if (j == 3) {

continue loop;

}

} while ( j < 10 );

 

Hướng dẫn

Chọn C là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 2:35 chiều

Đánh giá chủ đề này
How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site