试题与答案

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

题型:填空题

题目:

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

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

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0204/9689fbb935b09cd2b825dec73bfb5993.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
微信公众账号搜索答案