vb6.0练习题
DimiAsInteger,jAsInteger,str1$str1=""Fori=1To9Forj=1To9if()thenstr1=str1+Str$(j)+"x"+...
Dim i As Integer, j As Integer, str1$
str1 = " "
For i = 1 To 9
For j = 1 To 9
if( ) then
str1 = str1 + Str$(j) + "x" + Str$(i) + "=" + Str$(Val(ixj))
Else
str1 = str1 & Chr(13)
( )
End If
Next
Next
Print str1
下面程序师用来打印九九乘法表的,请填空? 要有详细说明啊 展开
str1 = " "
For i = 1 To 9
For j = 1 To 9
if( ) then
str1 = str1 + Str$(j) + "x" + Str$(i) + "=" + Str$(Val(ixj))
Else
str1 = str1 & Chr(13)
( )
End If
Next
Next
Print str1
下面程序师用来打印九九乘法表的,请填空? 要有详细说明啊 展开
2个回答
展开全部
Dim i As Integer, j As Integer, str1$
str1 = ""
For i = 1 To 9
For j = 1 To 9
If j <= i Then
str1 = str1 + " " + Str$(j) + "x" + Str$(i) + "=" + Str$(Val(i * j))
Else
str1 = str1 & Chr(13)
Exit For
End If
Next
Next
MsgBox str1
str1 = ""
For i = 1 To 9
For j = 1 To 9
If j <= i Then
str1 = str1 + " " + Str$(j) + "x" + Str$(i) + "=" + Str$(Val(i * j))
Else
str1 = str1 & Chr(13)
Exit For
End If
Next
Next
MsgBox str1
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询