Cod sursa(job #1013446)

Utilizator pavlov.ionPavlov Ion pavlov.ion Data 20 octombrie 2013 22:37:53
Problema A+B Scor 0
Compilator c Status done
Runda Arhiva de probleme Marime 0.28 kb
#include <stdio.h>
int main ()
{
    FILE*f1,*f2;
    int a,b;
    f1=fopen("adunare.in.txt","r");
    fscanf(f1,"%d\n",&a);
    fscanf(f1,"%d",&b);
    fclose(f1);
    f2=fopen("adunare.out.txt","w");
    fprintf(f2,"%d",a+b);
    fclose(f2);
    return 0;
}