Cod sursa(job #169086)

Utilizator stefynr8Space Monkey stefynr8 Data 1 aprilie 2008 01:04:38
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <fstream.h>
#include <iostream.h>

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