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 i
print (3,4)
人气:363 ℃ 时间:2020-05-26 18:51:52
解答
x(3,4)=15
因为:
x(3,4)=x(2,3)+3+4
x(2,3)=x(1,2)+2+3
x(1,2)=x(0,1)+1+2
所以
x(3,4)=x(0,1)+1+2+2+3+3+4
=0+1+2+2+3+3+4
=15
推荐
- dim a(10,10) as integer for i=1 to 10 for j=1to 10 a(i,j)=i*j next j,i print a(2,2)+a(3,3)
- Dim i As Integer,n As Integer For i = 0 To 50 i = i + 3 n = n + 1 If i > 10 Then Exit For Next Pri
- 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(
- dim i as integer dim sum as integer sum=0 for i=0 to 5 sum=sum+i next sum=?
- VB dim x as integer dim i as integer x = 100 for i = 1 to 100 step 5 x = x - i / 6 next i print x
- 非透明体的三视图看不见的棱要画虚线么?比如一根水泥管的俯视图要把...
- 请给我一句to such a degree 的倒装例句,
- 求下列函数的定义域,
猜你喜欢