Cod sursa(job #784569)

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