单项选择题

PHP中,如果要计算1+2+…+1000,则使用()循环最好。

A.do…while
B.for each
C.while
D.for

相关试题