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

下面是一个计算 1至m的阶乘并依次输出的程序。请将程序补充完整。 #include double result=1; void fun( int j) { result=result*j; } void main() { int m,i; printf("Please enter an integer:"); scanf("%d", (1) ); for(i=1;i<=m;i++) {fun(i); printf("%d!=%f\n", ( 2 ) ); } }

举报
题目标签:输出完整阶乘
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三