Cod sursa(job #413218)
Utilizator | Data | 7 martie 2010 22:14:18 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 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,"%ld",&a);
fscanf(fin,"%ld",&b);
fprintf(fout,"%ld\n",a+b);
fclose(fin);
fclose(fout);
return 0;
}