Cod sursa(job #1137245)
Utilizator | Data | 9 martie 2014 12:24:29 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
FILE *f,*g;
int A,B;
int main()
{
f=freopen("adunare.in","r",stdin);
g=freopen("adunare.out","w",stdout);
fscanf(f,"%d",&A);
fscanf(f,"%d",&B);
fprintf(g,"%d",A+B);
fclose(f);
fclose(g);
return 0;
}