用vf编程, 计算1到100的平方根。

2024-12-18 19:45:43
推荐回答(2个)
回答1:

clear
for i=1 to 100
k=sqrt(i)
?alltrim(str(i))+"的平方根是:",k
endfor

回答2:

CLEAR
SET TALK OFF
FOR M=1 TO 100
?SQRT(M)
ENDFOR
SET TALK ON
RETURN