Cod sursa(job #864447)
Utilizator | Data | 24 ianuarie 2013 23:17:24 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
int adunare(int a,int b){
return a+b;
}
int main(){
int a,b;
ifstream f;ofstream g; f.open("adunare.in");g.open("adunare.out");
f>>a;
f>>b;
g<<adunare(a,b);
f.close();
g.close();
return 0;
}