1、阶乘函数#includeintsum(inty);intjiechen(intx);voidmain() inta,b;printf(“shuruyigeshu:n“);scanf(“%d“,b=sum(a);printf(“%d“,b);intjiechen(intx) ints=1,n;for(n=x;n0;n-)s*=n;returns;intsum(inty) intm=0,n;for(n=y;n0;n-)m+=jiechen(n);returnm;输入注意#includevoidmain() inta;scanf(“a=%d“,printf(“a=%d“,a);#includeint
2、d;/系统默认为0;在函数外voidmain() inta=1,b=0,c=1;if(aprintf(“%d%d%d%d“,a,b,c,d);输出*阵#include#defineSPACE32voidstar(inti,intn);voidmain() inti,n=10;for(i=1;ivoidmain() inta,b,x;printf(“输入a,b:“);scanf(“%d%d“,if(a=0if(a=0if(a/*九九表*/#includevoidmain() inti,j;printf(“%6c“,32);for(i=1;i#includeintprime(intx);voidm
3、ain() inti;for(i=2;ivoidmain() inti,j,max,a=25,64,38,40,75,66,38,54;max=a0;for(i=1;imax) max=ai;j=i+1;printf(“%2d%2dn“,max,j);/*删除*/#includeintdel(inta,intn,intb)/删除函数 inti,k=1;b0=a0;for(i=1;in;i+)if(ai!=ai-1)bk+=ai;/用一个数组代替,数组参数,传址returnk;voidmain() inti,k,a8,b8;for(i=0;i8;i+)scanf(“%d“,k=del(a,8,b);for(i=0;ik;i+)printf(“%3d“,bi);printf(“n“);