(1)
请在划线处填入合适代码。
Dim a(1 To 30) As Integer,
b(1 To 30) As Integer
Dim ans(1 To 60) As Integer
Dim La As Integer, Lb As
Integer
Dim length As Integer
Private Sub Command1_Click()
Dim i As Integer, j As
Integer, t As Integer, temp As String
‘将两个乘数(正整数)各数位上的数字按照上述算法依次存入数组a和b,每个正整数位数分别保存到变量La和Lb;将保存结果的数组ans(i)值初始化为零(该部分程序代码略)
For i = 1 To Lb ‘按低位到高位的顺序进行列竖式的逐位乘法
For j = 1 To La
ans(i + j - 1) =________ + b(i) * a(j)
Next j
Next i
For i = 1 To La + Lb ‘对计算结果进行进位处理
ans(i+1) =ans(i +1)+ ans(i) \ 10
ans(i) =________
Next i
length = La + Lb ‘最多位数
Do While ans (length) =
0 ‘计算实际位数
length = length - 1
Loop
For i =________To
1 Step -1
Label4.Caption = Label4.Caption + Str(ans(i))
Next i
End Sub