Cod sursa(job #404570)
Utilizator | Data | 26 februarie 2010 12:40:23 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | teme_upb | Marime | 0.26 kb |
#include<stdio.h>
int main()
{
FILE *fin, *fout;
fin = fopen("adunare.in","r") ;
fout = fopen("adunare.out","w");
int a,b;
fscanf(fin, "%i",&a);
fscanf(fin, "%i",&b);
fprintf(fout,"%i",a+b);
fin.close();
fout.close();
}