还剩15页未读,继续阅读
本资源只提供10页预览,全部文档请下载后查看!喜欢就下载吧,查找使用更方便
文本内容:
表操作题
4.
0.AND.N%3=0,N,x=x+N,ENDIF,ENDFOR求出并显示的值,将成果存入变量中,713!+4!+5!ut要求用编程for邛*S=0,FOR1=3TO5,p=l,FOR J=1TO I,p J,ENDFOR,S=S+p,endfor,的值是”,“3!+4!+5!s.OUT=S求间的所有偶数的和,成果输入变量中,931-200OUT要求用循环语句实现forS=0,FOR I=1TO200,IF I/2=INTI/2,S=S+I,ENDIF,ENDFOR,S,OUT=S编程打印一数列,前两个数是、第三个数是前两9701,个数之和,以后每个数都是其前两个数之和编程求出第个数,将成果存入中,要求用循环语句20ut for实现?a=0,B=1,for i=3to20,c=a+b,a=b,b=c endfor,c=”,c,out=c编程求455sum=3-33+333-3333+33333S=0,t=0,d=3,for i=l to5,t=t+d,八s=s+t*-l i+1,d=d*10,endfor,out=s,out求454sum=l/3+l/33+l/333+l/3333+l/33333S=0,t=0,d=3,for i=l to5,t=t+d,s=s+l/t,二d d*10,endfor,out=s,out数列第项的值第一项为第二项也为450fibonacci281,1,OOOOOOOOOStore1to fl,f2,f=fl+f2,for i=3to27,fl=f2,f2=f,f=fl+f2,endfor,out=f,out449s=2/1+3/2+5/3+8Z5+13/8+21/13+34/21fl=l,f2=l,s=0,for i=l to7,f3=fl+f2,fl=f2,f2=f3,s=s+f2/fl,endfor,out=s,out444al=l,a2=l/l+al,当,求a3=l/l+a
1.0/l+a,s=s+a,endfor,out=s,out445al=l,a2=l/l+al,当,求a3=l/l+a
1.0/l+a,s=s+a*-lAi,endfor,out=s,out435sum=3+33+333+3333+33333+333333S=0,t=0,d=3,for i=l to5,t=t+d,s=s+t,d=d*10,endfor,out=s,out分数序列..前项4312/1,3/2,5/3,8/5,13/8,21/13……20之和Fl=l,f2=l,s=0,for i=1to20,f3=fl+f2,fl=f2,422al=l a2=l/l+alf2=f3,s=s+f2/fl,endfor,out=s,outfor i=l to9a=
1.0/1+a endfor求a3=l/l+a
821222.
33333.并将输出第三行存入变量中4444444sN=1,for n=l to4,space4-n,for m=l to2*n-l,strn,l,endfor,endfor,set talkon,s=33333”利用循环输出图形844333222221111111并将最后一行存入变量中sFor n=1to4,space4-n,for m=l to数组题求4522*n-l,str4-n+l,l,endfor,endfor,s=,,lll llir,max-min=Store arrayl to max,min,for i=lto10,if arrayimax,max=arrayi,endif,二if arrayimin,min=arrayi,endif,endfor,out max-min,out求451max+minStore arraylto max,min,for i=lto10,if arrayimax,max=arrayi,endif,if arrayimin,min=arrayi,endif,endfor,out=max+min,out。
个人认证
优秀文档
获得点赞 0