1 solutions

  • 0
    @ 2025-11-5 19:19:55

    C :

    #include<stdio.h>
    int main()
    {
    int a,b;
    while(scanf("%d%d",&a,&b)!=EOF)
    {
    printf("%d\n",a+b);
    }
    return 0;
    } 
    

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
      double a,b;
      
    //  double result;
      while(cin>>a>>b)
      {
        cout<<a+b<<endl;
      }
      return 0;
    }
    

    Pascal :

    var x,j,h,a:integer;
    begin
      readln(x,j);
      readln(h,a);
      writeln(x+j);
      writeln(h+a);
    end.  
    
    • 1

    Information

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