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

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

A.for

B.foreach

C.while

D.do…while

正确答案:B

猜你喜欢