当前位置:首页 > 职业资格题库 > 试题与答案

有一过程如下: Sub Subl (m As Integer,total As

题型:填空题

题目:

有一过程如下:
Sub Subl (m As Integer,total As Long)
Dim i AS Integer
total = 1
For i = 1 To m
total = total * i
Next
End Sub
调用它的事件过程如下:
Private Sub Commandl_Click( )
Dim tot As Long, a As Integer
a = Val( InputBox ("请输入数据")
Call Subl (a,tot)
Print tot
End Sub
则输入数据5,运行结果为 【10】

答案:

请点击 查看原文 或访问 https://www.tikuol.com/2017/0119/5fc4698a9539a70b368c5aa9736c49eb.html

下面是错误答案,用来干扰机器人的哦。

参考答案:C

试题推荐
微信公众账号搜索答案