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