主观

以下程序的功能是:从键盘输入若干个学生的成绩,统计出最高成绩和最低成绩,当输入负数时结束输入。

#include<stdio.h>

main()

{float x,amax,amin;

scanf("%f",&x);

amax=x:

amin=x;

while( )/*第一空*/

{if(______)amax=x;/*第二空*/

if(x<amin)______;/*第三空*/

scanf("%f",&x);

}

printf("amax=%3.2f,amin=%3.2f\n",amax,amin);

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服