首页 › 答案 › 题库 › 知到智慧树 › 未分类

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

PHP中,如果要计算1+2+…+1000,则使用()循环最好。
A.for
B.foreach
C.while
D.do…while
正确答案:B