Cod sursa(job #1137191)
Utilizator | Data | 9 martie 2014 12:15:28 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 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=fopen("adunare.in","r");
g=fopen("adunare.out.out","w");
fscanf(f,"%d",&A);
fscanf(f,"%d",&B);
fprintf(g,"%d",A+B);
fclose(f);
fclose(g);
}