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