Cod sursa(job #675657)
Utilizator | Data | 7 februarie 2012 21:59:47 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<fstream>
using namespace std;
int main(){
//START
int a,b,s;
ifstream f("adunare.in");
ofstream g("adunare.out");
//IMPUT
f>>a;
f>>b;
//PROGRAM
s=a+b;
//OUTPUT
if(s<2000000000)
g<<s;
//CLOSE
f.close();
g.close();
system("pause");
return 0;
}