1 solutions

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

    C :

    #include<stdio.h>
    #define CHANGE(a,b) printf("%d %d\n",b,a);
    int main()
    {
      int a,b;
      scanf("%d%d",&a,&b);
      CHANGE(a,b);
      return 0;
    }
    

    C++ :

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

    Pascal :

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

    C语言程序设计教程(第三版)课后习题9.1

    Information

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