Cod sursa(job #2445789)

Utilizator D3eD3eCristina D3eD3e Data 5 august 2019 15:32:22
Problema A+B Scor 100
Compilator c-64 Status done
Runda Arhiva de probleme Marime 0.29 kb
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a, b, s;
    FILE *fin, *fout;

    fin = fopen("adunare.in", "r");
    fscanf(fin, "%d\n%d", &a, &b);

    s = a + b;

    fout = fopen("adunare.out", "w");
    fprintf(fout, "%d", s);

    fclose(fin);
    fclose(fout);

    return 0;
}