以下程序的功能是:从键盘上输入若干个学生的成绩,统计并输出最高成绩和最低成绩,当输入负数时结束输入,请填空。(答案中请不要带空格,答案之间用3个空格键间隔) include <iostream> using namespace std; void main() { float x,max,min; cin>>x; max=x; min=x; while() { if () max=x; if() min=x; cin>>x; } cout<<"\nmax="<< max \n"; }>

时间:2024-04-12 16:11:44

相似题目