View Code of Problem 1

#include <iostream>

using namespace std;

int add(int a, int b) {
    return a+b;
}

int main() {
    int a, b;
    while (cin >> a >> b) {
        cout << add(a, b) << "\n";
    }
    return 0;
}

Double click to view unformatted code.


Back to problem 1