第二章——简单的算法举例 求1*2*3*4*5 求12345 #include<stdio.h> int main() { int i; int m=1; for(i=1;i<=5;i++) { m=m*i; } printf("乘积为:%d\n",m); return 0; } 运算结果如下