Cod sursa(job #428528)
| Utilizator | Data | 29 martie 2010 12:33:23 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | c | Status | done |
| Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
FILE * in, * out;
long a, b, s;
in = fopen ("adunare.in", "rt");
out = fopen("adunare.out","wt");
fscanf(in,"%d%d", &a, &b);
s = a + b;
fprintf(out,"%d", s);
fclose(in);
fclose(out);
return 0;
}
