Cod sursa(job #221411)
Utilizator | Data | 16 noiembrie 2008 14:00:37 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main() {
int a;
int b;
int s;
ifstream f;
ofstream g;
f.open("adunare.in");
g.open("adunare.out");
f>>a;
f>>b;
s=a+b;
g<<s;
f.close();
g.close();
return 0;
}