编写如下通用过程: Sub proc(By Val num As Long,ByRef ren As Long) Dim k As Long K = 1 num=Abs(num) Do While num k= k *(num Mod 10) num=num\ 10 Loop ren=k End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1 Click() Dim n As Long, r As Long n=InputBox("请输入一个整数") n = CLng(n) proc n,r Print r End Sub 程序运行后,单击命令按钮,在输入对话框中输入345,输出结果是【 】。
下列程序运行后,在窗体上打印的结果是【 】。 Private Sub test(a, b,c) a = a + 1: b = b + 2:C = C + 3 End Sub Private Sub Command1 Click() x = 1:v = 2:z = 3 Call test(x,y + 3, (z)) Print "Main:";x;y;z End Sub
语句Static x(7,8)As Double定义了【 】个元素。