set talk off clear for W=100to 200 prime=.t. for I=2to W-1 if mod(W,I)=0 prime=.f. exit endif enddo哪里错掉了.嵌套错误又是什么.不是很懂若改为任意范围内的素数和(100与200用m,n代替呢.该怎么写)非常感谢.机试

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 18:23:33
set talk off clear for W=100to 200 prime=.t. for I=2to W-1 if mod(W,I)=0 prime=.f. exit endif enddo哪里错掉了.嵌套错误又是什么.不是很懂若改为任意范围内的素数和(100与200用m,n代替呢.该怎么写)非常感谢.机试
xn@_eu5-XB KP N 4I DH&a:gaKndV_y^s ̟hHNZ u V+ 5\e8ô§Gl^A!`(dW#(_ snl

set talk off clear for W=100to 200 prime=.t. for I=2to W-1 if mod(W,I)=0 prime=.f. exit endif enddo哪里错掉了.嵌套错误又是什么.不是很懂若改为任意范围内的素数和(100与200用m,n代替呢.该怎么写)非常感谢.机试
set talk off clear for W=100to 200 prime=.t. for I=2to W-1 if mod(W,I)=0 prime=.f. exit endif enddo
哪里错掉了.嵌套错误又是什么.不是很懂
若改为任意范围内的素数和(100与200用m,n代替呢.该怎么写)
非常感谢.
机试后输出的是f
不是很董。。为什么是.f..假如要求100到200内的素数的和呢?

set talk off clear for W=100to 200 prime=.t. for I=2to W-1 if mod(W,I)=0 prime=.f. exit endif enddo哪里错掉了.嵌套错误又是什么.不是很懂若改为任意范围内的素数和(100与200用m,n代替呢.该怎么写)非常感谢.机试
上面的命令缺少内容,下面是正确的:
set talk off
clear
for w=100 to 200
prime=.t.
for i=2 to w-1
if mod(w,1)=0
prime=.f.
exit
endif
endfor
endfor
prime
解析:for后面是赋值变量,比如w=100,就是将100赋给w,to后面是终值,当w

这到底是数学呢还是英语呢

VF中,程序开头的SET TALK OFF         CLEAR set talk off clear s=o i=1 最好带中文的 set talk offclears=oi=1do while i VFP:set talk off clear s=0 for m=3 to 7 n=2 do while n 1.写出下面程序的作用 Set talk off Clear I=2 Do While I SET TALK OFF CLEAR STORE 0 TO S,T,P FOR K=1 TO 10 DO ... 编程计算题,求详解 SET TALK OFF CLEAR STORE 1 TO S,I,J DO WHILE I 请问Vf 中的 set talk on/off clear set talk off x=10 y=-3 for n=29+x to x ;ste p y endfor n return 英语翻译SET TALK OFF   n=0   CLEAR   GO TOP   DO WHILE!EOF()     IF AT("勇",xm)>0       n=n+1      ENDIF     SKIP   ENDDO set talk off clear for W=100to 200 prime=.t. for I=2to W-1 if mod(W,I)=0 prime=.f. exit endif enddo哪里错掉了.嵌套错误又是什么.不是很懂若改为任意范围内的素数和(100与200用m,n代替呢.该怎么写)非常感谢.机试 SET TALK OFF,X=2 ,DO WHILE X SET TALK OFF 这个语句有什么作用? vfp执行如下程序后,显示A的值 set talk off clear store 0 to a,b do while a>=b a=a+b b=b-1 enddoset talk onA.-3 B.6 C.-6 D.0set talk offclearstore 0 to a,bdo while a>=b a=a+bb=b-1enddo vfp的2道程序题~谢谢各位高手改错功能:以下程序通过键盘输入4个数字,找出其中最小的数.*------------------------------------------------------- SET TALK OFF TT=TT+1第二处 CLEAR ?口令错,按任意 vfp中set talk off/on和set safety 程序中常用这两句开头和结尾~ 这段Vf语言哪里出错了?·set talk off·clear·s=0·for n=1to100·s=s+n*n·if s>5500·exit·end if·end forn·set talk on·return SET TALK OFF CLEAR STORE 0 TO S,T,P FOR K=1 TO 10 DO CASE CASE INT(K/2)=K/2 T=T+K CASE INT(K/5)=K/5OTHERWISE P=P+KEND CASEENDFORK,T,S,PSET TALK OFF SET TALK OFF CLEAR FOR I=1 TO 20 FOR J=1 TO 33 FOR K=(100-I*5-J*3)*3 IF I=J=K=100 I,J,K ENDIF ENDFOK=(100-I*5-J*3)*3 提示语法错误SET TALK OFFCLEARFOR I=1 TO 20FOR J=1 TO 33FOR K=(100-I*5-J*3)*3IF I=J=K=100I,J,KENDIFENDFORENDFORENDFORSET TALK ON