当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有如下函数: Function fun(a As Integer,n As Integer)As Integer Dim m AS Integer While a>


有如下函数: Function fun(a As Integer,n As Integer)As Integer Dim m AS Integer While a>=n a=a-n:m=m+1 Wend Fun=m End Function 该函数的返回值是。 A.a乘以n的乘积 B.a加n的和 C.a减n的差 D.a除以n的商(不含小数部分)

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 假定有以下函数过程:Function Fun(S As String)As StringDim sl As StringFori=1 ToLen(S)sl=Lea

  • (23)设有以下函数过程Private Function Fun(a() As Integer, b As String) As Integer...End Fun

  • 某人设计了下面的函数fun,功能是返回参数a中数值的位数: Function fun(a AS Integer)AS Integer

  • 假定有以下函数过程:Function Fun(S As String)As StringDim Sl AS StringFor i=1 TO Len(S)sl=U

  • (27)有下列函数过程()。 Function fun1(By Val x As Integer,By Valy As Integer) As Integer Do

  • 某人设计了下面的函数fun 功能是返回参数a中数值的位数: Function fun(a AS Integer)AS Integer