Cod sursa(job #806779)

Utilizator DxH5dIMHNSoucup Nicolae Silviu DxH5dIMHN Data 3 noiembrie 2012 15:19:41
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.34 kb
#include <iostream>
#include <fstream>

using namespace std;

int main ()
{
    int a = 0;
	int b = 0;
	int c = 0;
	ifstream infile;
    infile.open("adunare.in");
    infile >> a;
	infile >> b;
    infile.close();
	c = a + b;
	ofstream outfile;
    outfile.open("adunare.out");
    outfile << c;
    outfile.close();
	return 0;
}