#include
main()
{
int a[100],b[100],c[100];
int i,j,sum,aaa,f;
while(f!=0)
{
for(i=0;1;i++)
{
printf("input the 学分");
scanf("%d",&a);
f=a;
printf("input the 分数");
scanf("%d",&b);
}
}
for(j=0,jmain(){ int a[100],b[100],c[100]; int i,j,sum,aaa,f; //while(f!=0) //{for(i=0;1;i++)//for中间的条件判断是1(永远为true), 无限循环,外面的while不起作用,无法跳出{ printf("input the a ?? "); scanf("%d",&a); f=a; if(f==0) // <-- 读到0
break; // <-- 就跳出循环 printf("input the b ?? "); scanf("%
|