Cod sursa(job #328721)
Utilizator | Data | 3 iulie 2009 11:09:54 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<stdio.h>
void main()
{
FILE *in, *out;
long a, b;
in = fopen("d:\\Cpp\\test.in", "rt");
out = fopen("d:\\Cpp\\test.out", "wt");
fscanf(in, "%d", &a);
fscanf(in, "%d", &b);
fprintf(out, "%d", a+b);
fcloseall();
}