Cod sursa(job #765677)
| Utilizator | Data | 8 iulie 2012 20:35:59 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | c | Status | done |
| Runda | Arhiva de probleme | Marime | 0.31 kb |
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *p,*f;
int a,b,c;
f=fopen("adunare.in","r");
p=fopen("adunare.out","w");
fscanf(f,"%d\n",&a);
fscanf(f,"%d\n",&b);
if((a+b)<=2000000000)
fprintf(p,"%d",(a+b));
fclose(f);
fclose(p);
return 0;
}
