设有以下函数过程: Function fun(m As Integer)As Integer Dim k As Integer,sum As Integer sum=0 For k=m To 1 Step-2 sum

admin2012-12-08  20

问题 设有以下函数过程:
    Function fun(m As Integer)As Integer
    Dim k As Integer,sum As Integer
    sum=0
    For k=m To 1 Step-2
    sum=sum+k
    Next k
    fun=sum
    End Function
    菪在程序中用语句S=fun(10)凋用此函数,则s的值为_________。

选项

答案30

解析
转载请注明原文地址:https://jikaoti.com/ti/YzO0FFFM
0

最新回复(0)