Untitled
yereAnonymous
c_cpp
10/22/2023 9:36 AM
316 B
19
Indexable
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a, n, max = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a;
if (a >= max) {
max = a;
}
}
cout << endl;
cout << max;
}Editor is loading...