大菜鸟问问题啦!
请教一下各位高手:#include<stdio.h>
void main()
{
double a[7],b[7],c[7],s=0;
int i,n;
a[7]={0.4404,0.0432,0.0405,0.0284,0.0174,0.0290,0.4011};
b[7]={256,46.5,14.3,5.35,1.72,0.70,0.052 };
for(n=1000;n<=5000;n++)
{
for (i=0;i<=6;i++)
{c[i]=a[i]/(b[i]-(b[i]-1)*n);
printf("%f",c[i]);
printf("\n");
s=s+c[i];
}
if(s==1)break;
printf("NL=%f",n/10000);
}
}