eng

mail@pastecode.io avatar
unknown
c_cpp
a year ago
184 B
2
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

int main()
{
	int max = 0;
	int a;
	while (cin >> a and a!=0)
	{
		if (a > max) max = a;
    }
		cout << max;
}