2个回答
展开全部
我下面给你空坦的这个代码谈尺是包括正三角打印乘法表和倒三角打印的……
Private Sub Command1_Click()
Dim se As String
Print Tab(35); "九九乘法表"
Print Tab(35); "-----------"
For i = 1 To 9
For j = 1 To i
se = i & "×" & j & "=" & i * j 'se字符含亏高串变量存放每一项表达式
Print Tab((j - 1) * 9 + 1); se; ' 每项表达式显示占9列
Next j
Print '换行
Next i
End Sub
Private Sub Command2_Click()
Dim se As String
Print Tab(35); "九九乘法表"
Print Tab(35); "-----------"
For i = 1 To 9
For j = i To 9
se = i & "×" & j & "=" & i * j 'se字符串变量存放每一项表达式
Print Tab((j - 1) * 9 + 1); se; ' 每项表达式显示占9列
Next j
Print '换行
Next i
End Sub
Private Sub Command3_Click()
Me.Cls
End Sub
Private Sub Command1_Click()
Dim se As String
Print Tab(35); "九九乘法表"
Print Tab(35); "-----------"
For i = 1 To 9
For j = 1 To i
se = i & "×" & j & "=" & i * j 'se字符含亏高串变量存放每一项表达式
Print Tab((j - 1) * 9 + 1); se; ' 每项表达式显示占9列
Next j
Print '换行
Next i
End Sub
Private Sub Command2_Click()
Dim se As String
Print Tab(35); "九九乘法表"
Print Tab(35); "-----------"
For i = 1 To 9
For j = i To 9
se = i & "×" & j & "=" & i * j 'se字符串变量存放每一项表达式
Print Tab((j - 1) * 9 + 1); se; ' 每项表达式显示占9列
Next j
Print '换行
Next i
End Sub
Private Sub Command3_Click()
Me.Cls
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询