Dim a As Integer
Dim b As Integer
Dim c As String
For a = 1 To 9
c = " "
For b = 1 To a
c = c & a & " * " & b & " =" & a * b & vbTab
Next b
Print(c)
怎么是错的呢?
Dim a As Integer
Dim b As Integer
Dim c As String
For a = 1 To 9
c = " "
For b = 1 To a
c = c & a & " * " & b & " =" & a * b & vbTab
Next b
Print(c)
怎么是错的呢?
print 后面加括号可以吗?
print的是把你的内容显示到对话框~~~~~
程序是这样的
Private Sub Command1_Click() Dim a As Integer
Dim b As Integer
Dim c As String
For a = 1 To 9
c = " "
For b = 1 To a
c = c & a & " * " & b & " =" & a * b & vbTab
Next Print (c) Next End Sub
你上面少写了个next
Print(c)
的意思是
上的1*1 这\些的就是写了那句的结果
就是起输出的作用
我感覺上你好像是在模仿我上次在問問里提出的一個問題就是經典九九階乘法,詳看下圖
把Print(c)改为
next a
Print c
Dim a As Integer
Dim b As Integer
Dim c As String
For a = 1 To 9
c = " "
For b = 1 To a
c = c & a & " * " & b & " =" & a * b & vbTab
Next b Next a '你少写了这一行 Print (c)
整天对着电脑对人体有哪些危害? |
现在前男友找我重合,如果是你还会重合吗? |
你喜欢血族吗?为什么? |
点香熏灯可以用什么样的精油? |
奥尼尔演过的电影 |
为什么我说话对方听不到 |
我想问一个问题,谁能回答一下? |
现在诺基亚哪款智能机最适合学生用? |
谁有好看的电影的…推荐几部… |
大家帮忙起个名字,姓随便, |
冲动对不对… |
谁有好音乐听? |
陈冠希那些歌比较好听? |
谁的抢车位等级高 |
CF里怎么知道对方用外挂? |