#includelong fac(unsigned n){if (n == 0 || n == 1){return 1;}else{return (n * fac(n - 1));}}int main(){unsigned ui;printf("输入计算的阶乘:");scanf("%u", &ui);printf("%u的阶乘为:%u\n", ui, fac(ui));return 0;}