Cod sursa(job #1218614)
Utilizator | Data | 11 august 2014 23:09:22 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <stdio.h>
FILE*citire=fopen("adunare.in","r");
FILE*scriere=fopen("adunare.out","w");
int main()
{
int a,b;
fscanf(citire,"%d",&a);
fscanf(citire,"%d",&b);
fprintf(scriere,"%d",a+b);
fclose(citire);
fclose(scriere);
return 0;
}