当前位置:编程学习 > VB >>

Private Sub Command1_Click() Dim s% s=f(5) Print "s="; s End Sub Privat

写出下列事件过程的执行结果。 Private Sub Command1_Click() Dim s% s=f(5) Print "s="; s End Sub Private Function f(ByVal n As Integer) If n=1 Then f=1 Else f=n+f(n - 1) End If End Function
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,