下面程序的功能是从键盘上输入若干学生的学习成绩 统计并输出最高成绩和最低成绩 当输入为负数时
已帮助 人
下面程序的功能是从键盘上输入若干学生的学习成绩,统计并输出最高成绩和最低成绩,当输入为负数时结束输入。 ① main() { float x,amax,amin; scanf(”%f”,&x); amax=x; amin=x; while(① ) { if(x>amax) amax=x; if(② ) amin=x; scanf(”%f”,&x); } printf(”namax=%fnamin=%fn”,amax,amin); }
A.x >= 0
B.x <= 0
C.x > 0
D.x < 0

回答
共1条回复-
i<10,max=n,i++
