Cod sursa(job #505844)

Utilizator CarnaruCarnaru Tudor Carnaru Data 4 decembrie 2010 10:58:43
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include <fstream.h> 
int main() 
{ 
    
long a,b,s;      
    
ifstream f("adunare.in"); 
ofstream g("adunare.out");    
  
f>>a;  
f>>b;   

s=a+b; 
g<<s;   
f.close();   
g.close();   
return 0; 
}