for i=1 to 4 for j= 0 to i print chr$(65 + i) next j print next i我是个VB初学者,求解这个程序啊,特别是 J=0 to I 是啥米意思 是运行5次嘛?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/13 03:46:32

for i=1 to 4 for j= 0 to i print chr$(65 + i) next j print next i我是个VB初学者,求解这个程序啊,特别是 J=0 to I 是啥米意思 是运行5次嘛?
for i=1 to 4 for j= 0 to i print chr$(65 + i) next j print next i
我是个VB初学者,求解这个程序啊,特别是 J=0 to I 是啥米意思 是运行5次嘛?

for i=1 to 4 for j= 0 to i print chr$(65 + i) next j print next i我是个VB初学者,求解这个程序啊,特别是 J=0 to I 是啥米意思 是运行5次嘛?
这是一个打印字母的程序,I=1时打印 B 2次,I=2 时,打印 C 3次 ...
J是打印次数循环,65+i是打印字符的ASCII代码,1-4就是B到E.
0 to I 表示打印次数,比如I=4(E)时,就是打印0,1,2,3,4共五次.
BB CCC DDDD EEEEE

for(j=i+1;j 2个矩阵相加,For i = 1 To 4For j = 1 To 4c(i,j) = a(i,j) + b(i,j)Picture3.Print c(i,j);If i = 1 And j = 1 ThenMax = c(i,j)ElseIf Max < c(i,j) Then Max = c(i,j):n = i:m = jEnd IfNext jPicture3.PrintNext i这个和For i = 1 To 4For j = 1 To 4c(i,j) for (j=i Dim x(3,5) As Integer For i = 1 To 3 For j = 1 To 5 x(i,j) = x(i - 1,j - 1) + i + j Next j Next iprint (3,4) main() {int i,j,w=0; for(i=4; i; i--) for(j=1;j For j = 10 To i + 1 Step -1 VB x=0 for i =0 to 4,for j =0 to i-1,x=x+(i+j-1),exit for next j,next i,print x. for(j=1;j for(j=1;j VB 2个FOR循环语句求解答X=0For i= 1 to 4For j = 1 to ix= x+1 next j ,i 循环后X 求循环解释两个For 怎么循环 s=0,for i=1 to 5,for j=1 to i,for k=j to 4,s=s+1,next k,next j,next i,msgbox s,求详解s= 0For i = 1 To 5For j = 1 To iFor k = j To 4 s = s + 1Next k Next j Next iMsgBox sA.4 B.5 C.38 D.40自己算的和四个选项都不一样. 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 j=0 for i=1 to 10 j=j+i Next print j 请画出此程序的流程图并写出j的值 DIM AS INTEGER A(6),I,T,J,P T=0 FOR I=1 TO 6:A(I)=7-I:NEXT FOR I=1 TO 5 FOR J=1 TO 5 IF A(J)>A( 以下程序段的输出结果为__ for (i=4;i>1;i++) for(j=1;j Dim j%,i%,m% m = 0 For i = 1 To 3 For j = 1 To i m = m + j Next j,i Text1 = Str(m)最后m j 是多少 For i = 1 To 4 x = 4 For j = 1 To 3 x = 3 For k = 1 To 2 x = x + 6 Next k Next j Next i X=15?为什么 For i=1 To 4 x=3 For j=1 to 3 For k=1 to 2 x=x+3 Next k Next j Next i text1.Value=Str(x) End Sub