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