👤

#54 pbinfo.Va rog frumos ajutati-ma trebuie sa o fac !URGENT va rog!

Răspuns :

#include<iostream>
using namespace std;

int main()
{
   int x,max=0;
   cin>>x; max=x;
   if(x==0)
     cout<<"NU EXISTA";
  else
{
    while(cin>>x && x!=0)
    {
             if(x>max)
                  max=x;
    }
  cout<<max;
}
return 0;

}