Cod sursa(job #784552)

Utilizator stephanStefan stephan Data 6 septembrie 2012 12:12:56
Problema A+B Scor 0
Compilator c Status done
Runda Arhiva de probleme Marime 0.27 kb
#include <stdio.h>
int main()
{
long int a,b;
FILE *f,*f2;
f = fopen("date.in","r");
f2 = fopen("date.out","w");
if(fscanf(f,"%ld %ld",&a,&b) == 1)
{
printf("REUSIT");
}
else
{
printf("NEREUSIT");
}
fprintf(f2,"%ld",a+b);
fclose(f);
fclose(f2);
return 0;
}