填空题 C语言
题号 #153034

以下程序的功能是从健盘输入若干学生的成绩,并输出最高成绩和最低成绩,当输入负数时结束。请填空。 
main () 
{float x,amax,amin; 
scanf ("%f",&x); 
amax=x; 
amin=x; 
while (【7】) 
{if (x>amax) 
amax=x; 
else 
if【8】 
amin=x; 
else scanf ( "%f",&x); 
} 
printf ("\n amax=%f\n amin=%f\n",amax,amin); 
}

进入在线模考

参考答案

暂无

答案解析

x>0;x<amin

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考