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