Cod sursa(job #120414)
| Utilizator | Data | 5 ianuarie 2008 13:57:41 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<iostream.h>
#include<fstream.h>
void main()
{
fstream f("c:\\adunare.in",ios::in);
int n=0, g;
f>>g;
n+=g;
f>>g;
n+=g;
f.close();
fstream h("c:\\adunare.out",ios::out);
h<<n;
}
