题型:单选题 题类:常考题 难易度:困难
浙江省嘉兴市、丽水市2017-2018学年选考信息技术教学测试试卷(3月)
Private Sub Command1_Click()
Dim k As Integer,a As Integer,b As Integer
a=Val(Text1.Text)
b=Val(Text2.Text)
Label1.Caption=trans(a,b)
End Sub
Function trans(m As Integer,n As Integer)As String
If m<>0 Then
r=m Mod n
trans=trans(m\n,n)+Str(r)
Else
trans=0
End If
End Function
程序运行时,在文本框Text1和Text2中分别输入11和2,则Label1中的输出结果是( )
试题篮