1 solutions

  • 0
    @ 2025-11-5 17:24:19

    C++ :

    #include <iostream>
    #include <cstdio>
    using namespace std;
    int main()
    {
        int a,b,temp;
        cin>>a>>b;
        temp=a;
        a=b;
        b=temp;
        cout<<a<<" "<<b<<endl;
        return 0;
    }
    

    Pascal :

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

    Information

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