Cod sursa(job #431272)
Utilizator | Data | 31 martie 2010 20:24:28 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include<stdio.h>
void main()
{
int a,b;
FILE *f=fopen("adunare.in","r"),*g=fopen("adunare.out","w");
fscanf(f,"%d%d",&a,&b);
fprintf(g,"%d\n",a+b);
fclose(f);
fclose(g);
}