VB打印九九乘法表上三角
4个回答
展开全部
For i = 9 To 1 Step -1
For j = 1 To i
Print j & "*" & i & Format(i * j, "=@@ ");
Next
Print
Next
For j = 1 To i
Print j & "*" & i & Format(i * j, "=@@ ");
Next
Next
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Load()
For I = 9 To 1 Step -1
For J = 1 To I
Print J & "*" & I & "=" & J * I & " ";
Next
Print
Next
End Sub
For I = 9 To 1 Step -1
For J = 1 To I
Print J & "*" & I & "=" & J * I & " ";
Next
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Load()
Show
For i = 1 To 9
For j = 1 To 9 - i + 1
Print i; "*"; j; "="; i * j;
If i * j < 10 Then Print " ";
Next j
Print
Next i
End Sub
Show
For i = 1 To 9
For j = 1 To 9 - i + 1
Print i; "*"; j; "="; i * j;
If i * j < 10 Then Print " ";
Next j
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询