阶乘-n!_C语言实现
n!
// Code file created by C Code Develop #include "stdio.h" #include "stdlib.h" int main(){ int fac(int c); printf("%d", fac(- 4)); return 0; } int fac(int n) { if(n < 0) return EOF; if(n == 0 || n == 1) return 1; return n*fac(n - 1); }
本文来自博客园,转载请注明原文链接:https://www.cnblogs.com/WG11/p/15593840.html,作者:def_Class