Untitled

yere
mail@pastecode.io avatar
unknown
c_cpp
a year ago
237 B
2
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;
}