Cod sursa(job #667892)

Utilizator Mihnea35Gall Mihnea Mihnea35 Data 23 ianuarie 2012 21:22:19
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.18 kb
#include <fstream.h>
int main ()	{
	long a,s=0 ;
	ifstream f ("adunare.in") ;
	while (f>>a) s+=a ;
	f.close() ;
	ofstream g ("adunare.out") ;
	g<<s ;
	g.close() ;
return 0 ;
}