Accepted solution

URI 1113 Solution

Open original problem
Source code

#include<iostream>

using namespace std;

int main()

{

    int X,Y;

    while(1)

    {

        cin>>X;

        cin>>Y;

        if(X==Y)

        {

            return 0;

        }

        if(X>Y)

        {

            cout<<"Decrescente"<<endl;

        }

        else

        {

            cout<<"Crescente"<<endl;

        }

    }

    return 0;

}
Join the discussion

Add your comment