Cod sursa(job #325514)

Utilizator whynotJurju Valentina whynot Data 20 iunie 2009 22:19:53
Problema A+B Scor 0
Compilator c 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();
}