Cod sursa(job #1243345)
Utilizator | Data | 15 octombrie 2014 20:26:59 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <iostream>
#include <stdio.h>
int main()
{
FILE *f;
int a, b;
f = fopen("adunare.in", "r");
fscanf("%d\n%d", &a, &b);
fclose(f);
f = fopen("adunare.out", "w");
fprintf(f, "%d", a + b);
fclose(f);
return 0;
}