Cod sursa(job #1817380)
Utilizator | Data | 27 noiembrie 2016 18:34:29 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <stdio.h>
#include <stdlib.h>
int main() {
FILE *in = NULL;
FILE *out = NULL;
long int a, b;
fopen_s(&in, "adunare.in", "r");
fopen_s(&out, "adunare.out", "w");
fscanf_s(in, "%d", &a);
fscanf_s(in, "%d", &b);
fprintf_s(out, "%d", (a + b));
return 0;
}