题解 | 求最大值
求最大值
https://www.nowcoder.com/practice/d54521e5efa242e8a7fd6ae36f6cf70d
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
int max = INT_MIN, n, temp;
while (cin) {
n=10;
while (n != 0) {
cin >> temp;
if (temp > max) {
max = temp;
}
n--;
}
}
cout << "max=" << max << endl;
}
#考研##复试练习#2025考研复试 文章被收录于专栏
复试ing,努力中。。。
