Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
197 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int max = 0;

    int tmp = 1;
    while (cin >> tmp && tmp != 0) {
        if (tmp > max) max = tmp;

    }
    cout << max;
}