Untitled
Anonymous
Plain Text
10/21/2023 7:53 PM
229 B
22
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
int n, c = 0, g =1;
while (g)
{
cin >> n;
if (n > c) c = n;
if (n == 0) g = 0;
}
cout << c << endl;
}Editor is loading...