Cod sursa(job #598272)
Utilizator | Data | 25 iunie 2011 00:48:55 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <stdio.h>
#include <stdlib.h>
void main(void)
{ FILE *f,*g; int a,b;
f=fopen("adunare.in","r");
g=fopen("adunare.out","w");
fscanf(f,"%d %d",&a,&b);
fprintf(g,"%d",(a+b));
fclose(g);
fclose(f);
system("PAUSE");
}