单项选择题

在窗体上画1个名称为Command1的命令按钮,然后编写下列程序:   Private Sub Command1_Click()   Print fun("ABCDEFG")   End Sub   Function fun(st As String)As string    stlen=Len(st)    temp=""    For k=1 To stlen/2    temp=temp+Mid(st,k,1)+Mid(st,stlen-k+1,1)    Next k    fun=temp   End Function   程序运行时,单击命令按钮,则在窗体上显示的是( )。

A.ABCDEFG
B.AGBFCE
C.GFEDCBA
D.AGBFCED
热门 试题