logo - 刷刷题
下载APP
【简答题】

( 填写适当内容 , 完善程序功能 ) 下面程序的功能是:求阶乘之和 s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10! 。 #include int fact(int m) { int i, t=1; for(i=1; i<=m; i++) _______; return t; } int sum(int n ) { int i, _______; for(i=1; i<=n; i++) s=s+fact(i); return s; } void main( ) { int n=10; printf("%d\n", sum(n) ); }

题目标签:程序阶乘功能
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】宰后检疫的程序不包括

A.
头部检疫
B.
内脏检疫
C.
酮体检疫
D.
菌体检疫

【单选题】有如下事件过程:Private Sub Form_Load() Show Dim Arr() As Variant Arr = Array(1, 3, 5, 7, 9, 11, 13, 15) Call converse(Arr) For i = 0 To 7 Print arr(i); Next iEnd Sub 以上程序的功能是,通过调用Converse过程,将数组Arr中的元素逆序存放并输出...

A.
Private Sub converse(dim a() as Variant ) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
B.
Private Sub converse(dim a() as Variant) Dim T Dim J As Integer J = (LBound(A) + UBound(A)) / 2 For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
C.
Private Sub converse(a() As Variant) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
D.
Private Sub converse(a() As Variant) Dim T Dim J As Integer J = Int((LBound(A) + UBound(A)) / 2) For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub

【多选题】监控平台有哪些功能?

A.
管理设备
B.
用户权限管理
C.
数据流管理
D.
录像存储管理
E.
与其它系统联动