搜题
问题   更新时间2023/4/3 12:59:00

以下程序的功能是:从键盘上输入若干个学生的成绩, 统计并输出最高成绩和最低成 绩,当输入负数时结束输入.请填空.#include int main(int argc, char* argv[]) { float x,amax,amin; scanf("%f",&x); amax=x; amin=x; while( 21 ) { if(x>amax) amax=x; if( 22 ) amin=x; scanf("%f",&x); }printf("\namax=%f\namin=%f\n",amax,amin); return 0; }

21: x >= 0 、22: x < amin
王老师:19139051760(拨打)