Cod sursa(job #359880)
Utilizator | Data | 28 octombrie 2009 17:26:52 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.16 kb |
#include<iostream.h>
#include<fstream.h>
ifstream f("adunare.in");
ofstream g("adunare.out");
int A,B,C;
int main()
{ f>>A>>B;
if(A) C=A+B;
g<<C<<endl;
}