全部题库 / VB / 试题详情
单选题 VB
2008-09-01

有如下函数过程: 
Function HFC(ByVal x As Integer, ByVal y As Integer) As Integer 
Do While y <> 0 
sic=x / y  
x=y  
y=sic  
Loop  
HFC=x  
End Function 
以下是该函数的调用过程,该程序的运行结果是 
Private Sub Command1_Click()  
Dim a As Integer  
Dim b As Integer  
a=12  
b=2  
x=HFC(a, B. 
Print x  
End Sub(  )。

A.0  
B.6 
C.2  
D.80

参考答案

B

答案解析

暂无解析

你可能感兴趣的试题