标签:actor bsp cto int 递归算法 span 阶乘 double ble
#include <stdio.h> double factorial(unsigned int i) { if(i <= 1) { return 1; } return i * factorial(i - 1); } int main() { int i = 15; printf("%d 的阶乘为 %f\n", i, factorial(i)); return 0; }
标签:actor bsp cto int 递归算法 span 阶乘 double ble
原文地址:https://www.cnblogs.com/sea-stream/p/9822437.html