Cod sursa(job #1187219)
Utilizator | Data | 17 mai 2014 21:36:41 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <iostream>
#include <fstream>
#define CONST 10
using namespace std;
int main()
{
int v[CONST], x, y, i=0;
//
ifstream f("adunare.in");
while(!f.eof()){
f>>v[i];
i++;
}
f.close();
//
ofstream f2("adunare.out");
x=v[0];y=v[1];
f2<<x+y;
f2.close();
return 0;
}