Cod sursa(job #818531)
Utilizator | Data | 17 noiembrie 2012 16:52:20 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
FILE *f=fopen("adunare.in","r");
FILE *g=fopen("adunare.out","w");
int a,b;
fscanf(f,"%d",&a);
fscanf(f,"%d",&b);
fprintf(g,"%d",(a+b));
fclose(f);
fclose(g);
return 0;
}