1 solutions

  • 0
    @ 2025-11-5 17:48:29

    C++ :

    #include <iostream>
    #include <cstdio>
    using namespace std;
    int main()
    {
        int x,y;
        cin>>x>>y;
        if(x>y)
        {
            cout<<x<<">"<<y<<endl;
        }
        else if (x==y)
        {
            cout<<x<<"="<<y<<endl;
        }
        else
        {
            cout<<x<<"<"<<y<<endl;
        }
        return 0;
    }
    

    Pascal :

    var a,b:integer;
    begin
    readln(a,b);
    if a>b then writeln(a,'>',b);
    if a<b then writeln(a,'<',b);
    end.
    
    • 1

    Information

    ID
    18616
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    (None)
    # Submissions
    0
    Accepted
    0
    Uploaded By