摘要: 使用递归求阶乘(阶乘数据小于int型数据范围) 求n! 代码: #include <stdio.h>#include <stdlib.h>int fun(int n){ int sum = 0; if (n == 1) { return 1;//当n等于1时,1的阶乘为1; }else { sum 阅读全文
posted @ 2020-01-15 19:43 PCDL&TIPO 阅读(976) 评论(0) 推荐(0) 编辑