Cod sursa(job #1190524)

Utilizator itm_soldan_paulSoldan Paul itm_soldan_paul Data 25 mai 2014 14:19:32
Problema A+B Scor 0
Compilator cpp Status done
Runda itmarathon Marime 0.31 kb
#include<iostream>
#include<conio.h>
#include<fstream>
using namespace std;
int main()
{
    int a,b,c;
    ifstream f;
	f.open("adunare.in.txt", ifstream::in);
	ofstream g;
	g.open("adunare.out.txt", ofstream::out);
    f>>a;
    f>>b;
    c=a+b;
    g<<c;
    f.close();
    g.close();
	return 0;
}