vfp用for。。next和do while编程来求1+3+5+....99求速度
1个回答
2014-04-21
展开全部
J= 0
FOR I = 1 TO 99
J = J + I
NEXT
?J
J= 0
I = 1
DO WHILE I <= 99
J = J + 1
I = I + 1
ENDDO
?J
FOR I = 1 TO 99
J = J + I
NEXT
?J
J= 0
I = 1
DO WHILE I <= 99
J = J + 1
I = I + 1
ENDDO
?J
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询