C语言阶乘函数

tech2022-08-05  138

阶乘功能的函数 : int fact(int n) { long long c=1; int a; for(a=1;a<=n;a++) { c=c*a; } return c; } 代码中需要注意的是对于C的初始化数据
最新回复(0)