for i 1 to 2 for j 1 to i print strint(i,65+j) next i next jfor i 1 to 2 for j 1 to i print strint(i,65+j) next i next j
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 03:59:13
fori1to2forj1toiprintstrint(i,65+j)nextinextjfori1to2forj1toiprintstrint(i,65+j)nextinextjfori1to2fo
for i 1 to 2 for j 1 to i print strint(i,65+j) next i next jfor i 1 to 2 for j 1 to i print strint(i,65+j) next i next j
for i 1 to 2 for j 1 to i print strint(i,65+j) next i next j
for i 1 to 2
for j 1 to i
print strint(i,65+j)
next i
next j
for i 1 to 2 for j 1 to i print strint(i,65+j) next i next jfor i 1 to 2 for j 1 to i print strint(i,65+j) next i next j
题目有问题 请写好
不知道是不是这样的
Private Sub Form_Load()
For i = 1 To 2
For j = 1 To i
Print String(i, 65 + j)
Next j
Next i
End Sub
这个运行结果为
B
BB
CC
for i 1 to 2 for j 1 to i print strint(i,65+j) next i next jfor i 1 to 2 for j 1 to i print strint(i,65+j) next i next 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+1;j
For j = 10 To i + 1 Step -1
下面程序段运行后 for i=1 to 5 for j=2 to i print*;next j next i 为什么结果是10个“*”
J = 10 For I = 1 To J Step 5 I = I + 2 J = J - I Next I Print I Print J结果咋是15 和-3呢,要详细的哈,3Q3Q
运行下列程序后 输出的“*”个数( ) for i =1 to 2 for j=0 toi-1 print * next j next i 为什么结果是3
2、 FOR (I=1,j=20;I
VB 2个FOR循环语句求解答X=0For i= 1 to 4For j = 1 to ix= x+1 next j ,i 循环后X 求循环解释两个For 怎么循环
pascal问题求输出var a:array[1..6] of integer; i,j,p,t:integer;begin for i:=1 to 6 do read(a[i]); for j:=1 to 6-1 dobeginp:=j;for i:=j to 6 doif a[i]< a[p] then p:=i;t:=a[p];a[p]:=a[j];a[j]:=t;end; for i:=1 to 6 dobeginwrite(a[i]:2);if i
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的值
for循环语句嵌套怎么算?For I From 1 To 9For J From 0 To 9If 10J+I=J^2-I^2 ThenPrint 10J+IEnd IfEnd ForEnd For就比如像这个,两个for语句嵌套在一起,应该先算什么再算什么啊?
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,怎么算,
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:=1 to 9 do begin for j:=1 to 9 do begin write(j:1,’*’,i:1,’=’,I*j:2); end; writeln; end;能把这个程序的步骤,用文字说明吗
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