Cod sursa(job #2844141)
Utilizator | Data | 3 februarie 2022 20:27:35 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <stdio.h>
int main() {
int a, b;
FILE* pfin = NULL, * pfout = NULL;
pfin = fopen("adunare.in", "r");
pfout = fopen("adunare.out", "w");
fscanf(pfin, "%d %d", &a, &b);
fprintf(pfout, "%d", a + b);
fclose(pfin);
fclose(pfout);
pfin = NULL;
pfout = NULL;
return 0;
}