求n的阶乘(100<n<1000)的C语言程序答:define N (M+5)main(){ int Num;register int i,j,k,flag;register unsigned int n,m,pc;unsigned char str_n[5],result_0[N],result_1[N];void fun_print_result(char *result,int flag);int fun_mul(char *a,char *b,char *c,int flag);printf("输入计算其阶乘的数:Num = ...
C语言 等于阶乘和的三位数问题答:h,i,j没有每次循环都初始化。include<stdio.h>int main(){int a=100,b,c,d,e,f,g,h=1,i=1,j=1;while(a<=999){h=i=j=1;b = a/100;c = a%100/10;d = a%10;for (e=1; e<=b; e++){h = h*e;}for (f=1; f<=c; f++){i = f*i;}for (g=1; g<=d;...