问题已解决 50
#include<stdio.h>intmain(){floatx,y,a=0.9823,b=0.634106;inti,j;for(i=1;i<6;i++){x=a/(...
#include <stdio.h>int main(){float x,y,a=0.9823,b=0.634106;int i,j; for(i=1;i<6;i++) { x=a/(3.8565-2.8565*a); printf("x[%d]=%f\n",i,x); y=0.41176*x+0.57782; printf("y[%d]=%f\n",i+1,y); a=y; } for(j=6;j<28;j++) {y=1.27973*b-0.0001549; printf("y[%d]=%f\n",i+1,y); x=y/(3.8565-2.8565*y); printf("x[%d]=%f\n",i,x); b=x; }}后面一直在6,7之间循环 无法进行到第27
展开
展开全部
#include <stdio.h>
int main()
{ float x,y,a=0.9823,b=0.634106;
int i,j;
for(i=1; i<6; i++)
{ x=a/(3.8565-2.8565*a);
printf("x[%d]=%f\n",i,x);
y=0.41176*x+0.57782;
printf("y[%d]=%f\n",i+1,y);
a=y;
}
for(j=6; j<28; j++)
{ y=1.27973*b-0.0001549;
printf("y[%d]=%f\n",j+1,y); //有改动
x=y/(3.8565-2.8565*y);
printf("x[%d]=%f\n",j,x); //有改动
b=x;
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询