[填空题] 在窗体上画一个命令按钮,然后编写如下程序; Function fun(By Val num As Long)As Long Dim k As Long k=1 num=Abs(num) D
19 查阅
[填空题] 在窗体上画一个命令按钮,然后编写如下程序; Function fun(By Val num As Long)As Long Dim k As Long k=1 num=Abs(num) Do While num k=k*(hum Mod 10) nam=num10 Loopfun=k End Function Private Sub Command1_Click() Dim n As Long Dire r As Long n=Input Box("请输入一个数") n=CLng(n) r=fun(n) Printr End Sub 程序运行后,单击命令按钮,在输入对话框中输入"345",输出结果为 【10】
参考答案: