Cod sursa(job #959693)
Utilizator | Data | 8 iunie 2013 15:04:54 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include<stdio.h>
int u,p,s;
FILE *f,*g;
int main()
{
f=fopen("adunare.in.txt","r");
g=fopen("adunare.out.txt","w");
fscanf(f,"%i %i",&u,&p);
s=u+p;
fprintf(g,"%i",s);
fclose(f);
fclose(g);
}