题目

有如下VB程序段: Private Function f(x As Single, n As Integer)As Single   If n=0 then     f=1   Else     If n Mod 2=1 then       f=x*f(x,n\2)     Else         f=f(x,n\2)\x     End If   End If End Function Private Sub Command1_Click( )   Label1.Caption=Str(f(4,6)) End Sub 程序运行时,单击按钮Command1,标签Label1显示的内容是(  ) A . 1 B . 4 C . 27 D . 64 答案:B
信息技术 试题推荐
最近更新