background image

语言上机操作题

          .第 

填空题

请补充 FUN 函数,FUN 函数的功能是求 10 的阶乘。

注意:部分源程序给出如下。

请勿改动主函数 main 和其他函数中的任何内容,

仅在 fun 函数的横线上填入所编写的若干表达式或语句。

 

试题程序:

#include <stdio.h>

long fun(int  n)

{

if (___1___)

return (n*fun(___2___));

return ___3___;

}

main()

{

printf("10!=%ld\n", fun(10));

}