Cod sursa(job #1815160)
Utilizator | Data | 24 noiembrie 2016 21:30:54 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream>
#include<fstream>
using namespace std;
int a, b;
int suma(int a, int b)
{
int s = a + b;
return s;
}
int main() {
ifstream f("adunare.in");
ofstream g("adunare.out");
f >> a;
f >> b;
g << suma(a, b);
}