C运行结果错误
#include"stdio.h"void main()
{
int a[100],i,j=0,n=0,x1,x2,x3,x4,s,t;
for(i=1000;i<10000;i++)
{
x1=i/1000;
x2=i/100%10;
x3=i/10%10;
x4=i%10;
s=x1*10+x3;
t=x2*10+x4;
if(s==t*5){a[j]=i;j++;n++;}
}
for(i=0;i<100;i++)
{
printf("%5d",a[i]);
if((i+1)%5==0)printf("\n");
}
printf("all numbers is :%d\n",n);
}
运行结果怎么将a数组后面的值全都赋成了-858993460,满满地赋了100个···········