![](https://lstatic.shangxueba.com/jiandati/h5/images/m_q_title.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/logo2.png)
![以下程序的功能,从键盘上输入若干学生的成绩,统计并输出最高成绩和最低成绩,当输入负数时结束输入。填空,使程序正确。int main() { float x ,amax,amin; scanf("%f",&x); amax=0; amin=100; while(x>0) { if (x>amax) amax=x; [填空处] ; scanf("%f",&x); } printf("max=%d,min=%d",amax,amin); }](https://img2.soutiyun.com/shangxueba/askcard/2023-10/19/827/20231019095317235.jpg)
以下程序的功能,从键盘上输入若干学生的成绩,统计并输出最高成绩和最低成绩,当输入负数时结束输入。填空,使程序正确。int main() { float x ,amax,amin; scanf("%f",&x); amax=0; amin=100; while(x>0) { if (x>amax) amax=x; [填空处] ; scanf("%f",&x); } printf("max=%d,min=%d",amax,amin); }
A.else amin=x;
B.if (x <amin) amin="x;<br/">
C.if (x>amin) amin=x;
D.else x=amin;