Cod sursa(job #942500)
| Utilizator | Data | 22 aprilie 2013 19:45:40 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <stdio.h>
int main(void)
{
int a,b;
FILE *f1,*f2;
f1=fopen("adunare.in.txt","r");
f2=fopen("adunare.out.txt","w");
fscanf(f1,"%d %d",&a,&b);
fprintf(f2,"%d",a+b);
fcloseall();
}