basic sum code c++

 #include<iostream>

using namespace std;

int main() {
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
       
    int a,b;
    cin>>a>>b;
    cout<<a+b<<"\n";

    return 0;
}

Comments

Popular posts from this blog

static data members and methods in c++

Function Overloading in C++

recursions and recursive functins in c++