int?主()
{int?a,b,s,yx=0,jg = 0;
浮動?av;
while(1)
{scanf("%d%d ",& amp壹,& ampb);
s = a+b;
av = s/2.0;
如果(a & lt0 | | b & lt0)破;
Printf("總分:%d\t平均分:%.1f\n ",s,av);
if(av & gt;= 85)yx++;
不然呢?if(av & gt;= 60)jg++;
}?
Printf("優秀數:% d \ t合格數%d\n ",yx,jg);
回歸?0;
}