单项选择题
单击命令按钮时,下列程序代码的运行结果为( )。 Private Sub Command1_Click() print MyFunc(20,18) End Sub Public Function MyFunc (m As Integer,n As Integer)As Integer Do While m <>n Do While m > n:m=m - n:Loop Do While m < n:n=n - m:Loop Loop MyFunc=m End FunCtion
A.0
B.2
C.4
D.6
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在窗体上画一个通用对话框图,其Name属性为Cont,瑞画一个命令按钮,Name属性为Command1,然后编写如下事件过程:Privute Sub Command1_Click( )Cont.FileName= Cont.Flags=vbOFNFileMustExistCont.Filter= All Files| * . * Cont.FilterIndes_3Cont.DialogTitle= Open File Cont.Action=1If Cont.FileName= ThenMsgBox No file selected ElseOpen Cont.FileName For Input As #1Do While Not EOF(1)Input #1. b$Print b$LoopEnd IfEnd Sub以下各选项,对上述事件过程描述错误的是( )。
A.++i;
B.D--;
C.c++;
D.--f;
点击查看答案&解析
单项选择题
以下语句的输出结果是( )。a = Sqr(26)Print Formats $(a, $####.### )
A.$5.099
B.5.099
C.5099
D.$0005.099
点击查看答案&解析
相关试题
下面程序的作用是用InputBox函数输入一个整...
为了选择多个控件,可以按住【 】键,然后...
在Visual Basic 的立即窗口内输入以下语...
软件生命周期可分为多个阶段,一般分为定义...
随机文件使用Put语句写数据,使用【 】语...