单项选择题
单击命令按钮时,下列程序代码的运行结果为( )。 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
点击查看答案&解析
相关试题
窗体上有一个名称为Picturel的图片框控件,...
有以下程序:Option Base 1Dim arr()...
在窗体上画一个通用对话框,其名称为Common...
对窗体编写如下事件过程:Option Base 1...
设有如下程序:Private Sub Command1_C...