Cod sursa(job #784572)

Utilizator stephanStefan stephan Data 6 septembrie 2012 13:08:49
Problema A+B Scor 100
Compilator c Status done
Runda Arhiva de probleme Marime 0.2 kb
#include <stdio.h>
int main()
{
int a,b;
FILE *f,*f2;
f = fopen("adunare.in","r");
f2 = fopen("adunare.out","w");
fscanf(f,"%d %d",&a,&b);
fprintf(f2,"%d",a+b);
fclose(f);
fclose(f2);
return 0;
}