填空题
以下程序的功能是从键盘输入若干学生的成绩,并输出最高成绩和最低成绩,当输入负数时结束。请填空。
main( )
float x,amax,amin;
scanf("%f",&x);
amax=x; amin=x:
while({{U}} {{/U}})
if(x>amax) amax=X;
else
if{{U}} {{/U}} amin=X;
else scanf("%f",&x);
printf("//n amax=%f//n amin=%f//n",amax,amin);
提交答案
关闭