Cod sursa(job #413211)
Utilizator | Data | 7 martie 2010 22:02:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
/*
* bla.c
*
* Created on: Mar 7, 2010
* Author: mihai
*/
#include <stdio.h>
int main(void){
long int a,b;
FILE * fin = fopen("in.txt","r");
FILE * fout = fopen("out.txt","w");
fscanf(fin,"%d",&a);
fscanf(fin,"%d",&b);
fprintf(fout,"%d",a+b);
fclose(fin);
fclose(fout);
return 0;
}