Cod sursa(job #346444)
Utilizator | Data | 7 septembrie 2009 20:36:26 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream.h>
#include<fstream.h>
int main ()
{
ifstream x("adunare.in");
ofstream y("adunare.out");
int a,b;
long s=0;
x>>a;
x>>b;
s=a+b;
y<<s;
x.close();
y.close();
return 0;
}