早教吧 育儿知识 作业答案 考试题库 百科 知识分享

求VB题详细运行过程!!!!下列程序段执行后,元素X(3,4)的值为。DimX(3,5)AsInteger,iAsInteger,jAsIntegerFori=1to3Forj=1to5X(i,j)=X(i-1,j-1)+i+jNextjNexti

题目详情
求VB题详细运行过程!!!!
 下列程序段执行后,元素X(3,4)的值为____。
Dim X(3,5)As Integer , i As Integer, j 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
▼优质解答
答案和解析
计算结果如下表:
2 3 4
3 6 8
4 8 12
5 10 15
6 12 18
所以,x(3,4)=15