單項(xiàng)選擇題
如果循環(huán)次數(shù)在執(zhí)行循環(huán)體之前已確定,一般用(1)循環(huán);如果循環(huán)次數(shù)是由循環(huán)體的執(zhí)行情況確定的,一般用(2)循環(huán)和(3)循環(huán)。當(dāng)循環(huán)體至少執(zhí)行一次時(shí),用(4)循環(huán),反之,如果循環(huán)體可能一次也不執(zhí)行,選用(5)循環(huán)。以上五個(gè)空白處應(yīng)依次填入()
A.for、while、do-while、do-while、while
B.while、for、do-while、do-while、for
C.for、while、do-while、while、do-while
D.for、do-while、while、while、do-while