/* * * * */ #include void ladd(short *, short *, short *); void lsub(short *, short *, short *); void lmul(short *, short, short *); void printresult(short *); #define L 100000 #define L2 ((L+3)/4) int ppt; int main() { int target; printf("enter...>"); scanf("%d",&target); printf("\n"); static short s[L2]; short k; for (k=0;k=target){ printf("%2d!=",k); printresult(s); } } } void lmul(short a[], short b, short c[]) { short i; long d, cy=0; for (i=L2-1;i>=0;i--){ d=a[i]; c[i]=(d*b+cy)%10000; cy=(d*b+cy)/10000; } } void printresult(short c[]) { short i; int sinri=0,ketasuu=4; for (i=0;i=0;i--){ c[i]=a[i]+b[i]+cy; if(c[i]<10000) cy=0; else { c[i]=c[i]-10000; cy=1; } } } void lsub(short a[], short b[], short c[]) { short i,brrw=0; for(i=L2-1;i>=0;i--){ c[i]=a[i]-b[i]-brrw; if(c[i]>=0) brrw=1; else { c[i]=c[i]+10000; brrw=1; } } }