For K=1 TO 20

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 18:34:47
ForK=1TO20ForK=1TO20ForK=1TO20aa是一个数组,alen返回数组元素的数量假设:aa是个10行1列的数组那么fori=1toalen(aa)/2相当于fori=1to10/

For K=1 TO 20
For K=1 TO 20

For K=1 TO 20
aa 是一个数组,alen 返回数组元素的数量
假设:aa 是个 10 行 1 列 的数组
那么 for i=1 to alen(aa)/2 相当于 for i=1 to 10/2
假设:aa 是个 10 行 2 列 的数组
那么 for i=1 to alen(aa)/2 相当于 for i=1 to 20/2

For K=1 TO 20 For K=1 TO 20 VB题 a=5 For k=1 To 0 a=a+k Next k Print k;a VBA,定义一个二维数组arr(1 to 20,1 to y),求arr(k,1 to y)的平均数和标准差?For k = 1 To 20avg(k) = Application.WorksheetFunction.Average(arr(k,1 to y))std(k) = Application.WorksheetFunction.StDev(arr(k,1 to y))'红色报错,请问averag p=1 For k From 1 To 10 Step p=p+2*k-6 End For Print p 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 MATLAB运行时:Attempted to access (1,0); index must be a positive integer or logical.for N=1:1:8 for k=0:1:20 A(N,k)=0 endend? Attempted to access (1,0); index must be a positive integer or logical.for N=1:8 for k=0:20 A(N,k+1) 关于vf的题,DIMENSION A(6)FOR K=1 TO 6A(K)=20-2*kENDFORK=5DO WHILE K>=1A(K)=A(K)-A(K+1)K=K-1ENDDOA(1),A(3),A(5) k = 5 FOR j = 3 TO 7 STEP -1 k = k + j NEXT j PRINT k + j END 谁能替我仔细的分析一下这道题?x=6 for k=1 to 10 step -2 x=x+k next k print k;x for m = 10 to 1 step 0 k=k+3 next m 的结果是是什么 Matlab程序报错,问下高手那里出错了tic; for k=1:ND = min(D,repmat(D(:,k),[1 N])+repmat(D(k,:),[N 1])); if ((verbose == 1) & (rem(k,20) == 0)) disp([' Iteration:' num2str(k) ' Estimated time to completion:'num2str((N-k)*toc/k/60) ' minutes' k=0 for j=1 to 2 for i=1 to 3 k=i+1 next i for i=1 to 7 k=k+1 next i next j print k而且我还不明白print k 或者求变量的不同? A:=10;B:=50; FOR K:=A TO B DO BEGIN K:=K+1;{这一句是错误的!} WRITELN (K); END;A:=10;B:=50; FOR K:=A TO B DO BEGIN K:=K+1;{这一句是错误的!} WRITELN (K); END; 在pascal语言中怎么改正过来, 有如下程序dim arr(3,3) for j=1 to 3 for j=1 to 3 arr(j,k)=(j-1)*3+k next k next j有如下程序dim arr(3,3) for j=1 to 3 for j=1 to 3 arr(j,k)=(j-1)*3+k next k next j for j=2 to 3 for k=2 to 3 print arr(k,j); next k print next j 运行程序后 For i = k - 1 To 1 Step -1 特别是为什么用step?) vb题,For i=1 to 2 for j=1 to 2 for k=1 to jvb题,For i=1 to 2for j=1 to 2for k=1 to ja=a+2next knext jnext i最后变量a的值为10,怎么算, VB程序里 For k=1 to 10 step 它会有什么结果?