C_数据结构_循环实现求阶乘时间:2023-03-08 20:05:34 # include <stdio.h> int main(void) { int val; printf("请输入一个数字:"); printf("val = "); scanf("%d", &val); for (i=; i<=val; ++i) { mult = mult * i; } printf("%d的阶乘是:%d\n", val, mult); return ; }