Cod sursa(job #436885)
Utilizator | Data | 9 aprilie 2010 00:36:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | teme_upb | Marime | 0.25 kb |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int fd1,fd2;
fd1=fopen("out", "w");
fd2=fopen("in", "r");
int a, b;
fscanf(fd2, "%i %i ", &a, &b);
fprintf(fd1, "%i ", a + b);
fclose(fd2);
fclose(fd1);
return 0;
}