Cod sursa(job #404588)
| Utilizator | Data | 26 februarie 2010 12:47:11 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | c | Status | done |
| Runda | teme_upb | Marime | 0.26 kb |
#include<stdio.h>
int main(){
FILE *f,*f1;
int a,b;
f=fopen("adunare.in","r");
fscanf(f,"%d",&a);
fscanf(f,"%d",&b);
fclose(f);
f1=fopen("adunare.out","w");
fprintf(f1,"%d",a+b);
fclose(f1);
return 0;
}
