编程求当N9999){ printf("0%ld ",a[i]);continue; }if(a[i]>999){ printf("00%ld ",a[i]);continue; }if(a[i]>99){ printf("000%ld ",a[i]);continue; }if(a[i]>9){ printf("0000%ld ",a[i]);continue; }if(a[i]>=0){ printf("00000%ld ",a[i]);continue; }}}
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 06:06:06
编程求当N9999){ printf("0%ld ",a[i]);continue; }if(a[i]>999){ printf("00%ld ",a[i]);continue; }if(a[i]>99){ printf("000%ld ",a[i]);continue; }if(a[i]>9){ printf("0000%ld ",a[i]);continue; }if(a[i]>=0){ printf("00000%ld ",a[i]);continue; }}}
编程求当N9999)
{ printf("0%ld ",a[i]);continue; }
if(a[i]>999)
{ printf("00%ld ",a[i]);continue; }
if(a[i]>99)
{ printf("000%ld ",a[i]);continue; }
if(a[i]>9)
{ printf("0000%ld ",a[i]);continue; }
if(a[i]>=0)
{ printf("00000%ld ",a[i]);continue; }
}
}
编程求当N9999){ printf("0%ld ",a[i]);continue; }if(a[i]>999){ printf("00%ld ",a[i]);continue; }if(a[i]>99){ printf("000%ld ",a[i]);continue; }if(a[i]>9){ printf("0000%ld ",a[i]);continue; }if(a[i]>=0){ printf("00000%ld ",a[i]);continue; }}}
#include
void main()
{
int a[1000]={1},b[4]={0};
int k,i,j;
scanf("%d",&k);
void multi(int a[],int b[]); // 用于计算乘法的函数,计算a*b 并把结果放在a当中
void seperate(int n, int b[]); //分离一个数的没一位,并放在b中!
for (i=1;i=0;i--) //
printf("%d",a[i]); //
} //主函数结束,下面是函数部分
void seperate(int n,int b[]) //注意最后一位是放在b[0]中的!
{
int i;
for (i=0;n>0;i++)
{
b[i]=n%10;
n/=10;
}
}
void multi(int a[],int b[]) //核心程序,非常难调啊!
{
int tp[1000]={0};
int i,j,t,p,m,n;
for (m=3;b[m]==0;m--);
for (n=999;a[n]==0;n--);
for (j=0;j