Cod sursa(job #813564)
Utilizator | Data | 15 noiembrie 2012 18:51:08 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,b;
FILE *f,*g;
f=fopen("adunare.in","r");
g=fopen("adunare.out","w");
fscanf(f,"%d",&a);
fscanf(f,"%d",&b);
fprintf(g,"%d",a+b);
fclose(f);
fclose(g);
return 0;
}