Cod sursa(job #1997039)
| Utilizator | Data | 3 iulie 2017 11:43:17 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.27 kb |
#include <fstream>
using namespace std;
ifstream fin("aplusb.in");
ofstream fout("aplusb.out");
int add(int a, int b) {
int x;
x = a + b;
return x;
}
int main() {
int a, b, x;
fin >> a >> b;
x = add(a, b);
fout << x;
return 0;
}
