" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
using namespace std;
int main()
{
double a, max = 0;
while (cin >> a)
{
int locmax = 0;
if(a > 0)
{
while (a > 0)
{
cin >> a;
locmax ++;
}
if (locmax > max)
max = locmax;
}
if(a == 0)
{
cout << max << endl;
break;
}
}
system ("pause");
return 0;
}