Cod sursa(job #293697)

Utilizator stefynr8Space Monkey stefynr8 Data 2 aprilie 2009 00:07:55
Problema A+B Scor 100
Compilator cpp Status done
Runda infoexpert Marime 0.24 kb
#include <fstream.h>
#include <iostream.h>

int main()
{
 fstream f1("adunare.in",ios::in);
 fstream f2("adunare.out",ios::out);
 
 long a,b,s;
 
 f1 >> a;
 f1 >> b;
 s=a+b;
 f2<<s;
 
 f1.close();
 f2.close();
 return 0;
}