Cod sursa(job #705149)
Utilizator | Data | 3 martie 2012 14:33:52 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.42 kb |
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
FILE *in;
in = fopen("adunare.in", "r");
int a, b;
fscanf (in,"%d \n %d",&a, &b);
fclose(in);
int s;
s= a+b;
FILE *out;
out = fopen("adunare.out", "w");
fprintf(out, "%d", s);
fclose(out);
system("PAUSE");
return EXIT_SUCCESS;
}