Cod sursa(job #144309)
| Utilizator | Data | 27 februarie 2008 13:56:35 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<stdio.h>
int main()
{int a,b;
file *f=fopen("adunare.in","r");
file *g=fopen("adunare.out","w");
fscanf(f,"%d %d ",&a,&b);
s=a+b;
fprintf(g,"%d ",s);
fclose(f);
fclose(g);
return 0;
}
