#2320. 练习 单选14
练习 单选14
输入: 3 8 1 0 -999 下面程序输出是()。
int x;
cin >> x;
int mx = x, mn = x;
while (x != -999) {
if (x > mx) mx = x;
if (x < mn) mn = x;
cin >> x;
}
cout << mx << " " << mn;
{{ select(1) }}
- 8 0
- 8 1
- 8 -999
- 3 0
输入: 3 8 1 0 -999 下面程序输出是()。
int x;
cin >> x;
int mx = x, mn = x;
while (x != -999) {
if (x > mx) mx = x;
if (x < mn) mn = x;
cin >> x;
}
cout << mx << " " << mn;
{{ select(1) }}