Cod sursa(job #55541)
Utilizator | Data | 27 aprilie 2007 18:59:53 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
FILE *f,*f1;
int a,b;
f=fopen("adunare.in","r");
f1=fopen("adunare.out","w");
fscanf(f,"%d%d",&a,&b);
fprintf(f1,"%d",a+b);
fclose(f);fclose(f1);
return EXIT_SUCCESS;
}