Cod sursa(job #1517057)

Utilizator mihaela.bustanBustan Mihaela mihaela.bustan Data 3 noiembrie 2015 20:23:12
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.27 kb
#include <stdio.h>

using namespace std;
FILE *f, *g;

int main()
{
    f= fopen("a+b.in", "r");
    g= fopen("a+b.out", "w");
    int a, b, s;
    fscanf(f, "%d %d", &a, &b);
    s=a+b;
    fprintf(g, "%d", s);
    fclose(f);
    fclose(g);
    return 0;
}