Cod sursa(job #325503)
Utilizator | Data | 20 iunie 2009 19:46:21 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <stdio.h>
#include <conio.h>
FILE *f, *g;
long int A,B;
int main()
{
f=fopen("D:\\Info\\adunarein.txt", "r");
fscanf (f, "%ld", &A);
fscanf (f, "%ld", &B);
g=fopen("D:\\Info\\adunareout.txt", "w");
fprintf (g, "%ld", A+B);
fclose(f); fclose(g);
getch();
}