色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

主函數(shù)實現(xiàn)數(shù)據(jù)輸入及平均值輸出

劉柏宏2年前15瀏覽0評論

主函數(shù)實現(xiàn)數(shù)據(jù)輸入及平均值輸出?

Function Average(mySinge() As Single) As Single

Dim sn As Single

Dim cn As Integer, i As Integer

cn = UBound(mySinge) - LBound(mySinge) + 1

For i = LBound(mySinge) To UBound(mySinge)

sn = sn + mySinge(i)

Next i

Average = sn / cn

End Function

java數(shù)組平均數(shù),主函數(shù)實現(xiàn)數(shù)據(jù)輸入及平均值輸出