Cod sursa(job #797618)

Utilizator BfMvFreeRaibuletiu Viktor BfMvFree Data 14 octombrie 2012 15:12:34
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <iostream>
#include <fstream>

using namespace std;
ifstream f;
ofstream g;
int main ()
{	int a[2],i;
	f.open( "adunare.in" );
	g.open( "adunare.out" );
	for (i=1;i<=2;i++){
		f>>a[i];}
	g<<a[1]+a[2];
	return 0;}