请问怎么用VB打出九九乘法表下三角?
3个回答
展开全部
Private Sub Form_Click()
Dim i As Integer, j As Integer
For i = 1 To 9
For j = 1 To i
Print j & "*" & i & "=" & i * j,
Next j
Print
Next i
End Sub
Dim i As Integer, j As Integer
For i = 1 To 9
For j = 1 To i
Print j & "*" & i & "=" & i * j,
Next j
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
i=1
j=1
for i = 1 to 9
for j= 1 to 9
print i & " * " & j & " = " & i*j
print " "
if i = j then exit for
next
print chr(13)
next
j=1
for i = 1 to 9
for j= 1 to 9
print i & " * " & j & " = " & i*j
print " "
if i = j then exit for
next
print chr(13)
next
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Click()
For i = 1 To 9
For j = i To 9
Print i & "*" & j & "=" & i * j & " ";
Next j
Print
Next i
End Sub
For i = 1 To 9
For j = i To 9
Print i & "*" & j & "=" & i * j & " ";
Next j
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询