float ysl;
} p[100];
main()
{ int i,n=0;
float gjj[100];
printf("Please input gh:");
scanf("%d",&p[0].gh);
for(i=0;p.gh!=0;i++)
{ printf("Please input ysl:");
scanf("%f",&p.ysl);
if(p.ysl>=1000) gjj=p.ysl*0.04;
else gjj=p.ysl*0.02;
printf("Please input gh:");
scanf("%d",&p[i+1].gh);
n++;
}
for(i=0;i
printf("gh=%d ysl=%.2f gjj=%.2f\n",p.gh,p.ysl,gjj);
}