Cod sursa(job #2019453)

Utilizator physycMunte Vlad physyc Data 7 septembrie 2017 19:50:12
Problema A+B Scor 100
Compilator c Status done
Runda Arhiva de probleme Marime 0.3 kb
#include <stdio.h>
#include <stdlib.h>

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