Subscribe Us

Responsive Advertisement

Advertisement

URI Online Judge | 2414 Desafio do Maior Número solution in cpp

 

uri 1424 solution in cpp

by ujjal roy



#include<bits/stdc++.h>

using namespace std;

main()

{

    int a,maxe=-1;

    while(1)

    {

        cin>>a;

        if(a==0) break;

        else

        {

            if(a>maxe)

            {

                maxe=a;


            }

        }

    }

    cout<<maxe<<endl;


    return 0;

}


Post a Comment

0 Comments