Cod sursa(job #819918)
Utilizator | Data | 19 noiembrie 2012 20:36:25 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
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 1;
}